X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/c1e4bed9d6c57c6c8fd08712ba20f303980b1e69..0c52e5920879fff74c1ce1487470bf84b2df20cd:/doc/bugs/search_for_locale_data_in_the_installed_location.mdwn diff --git a/doc/bugs/search_for_locale_data_in_the_installed_location.mdwn b/doc/bugs/search_for_locale_data_in_the_installed_location.mdwn index ad379da1a..dace2ca19 100644 --- a/doc/bugs/search_for_locale_data_in_the_installed_location.mdwn +++ b/doc/bugs/search_for_locale_data_in_the_installed_location.mdwn @@ -2,7 +2,7 @@ It seems like gettext only searches for locale information in /usr/share/locale, --- a/IkiWiki.pm +++ b/IkiWiki.pm - @@ -1057,6 +1057,7 @@ sub gettext { #{{{ + @@ -1057,6 +1057,7 @@ sub gettext { $gettext_obj=undef; return shift; } @@ -11,5 +11,15 @@ It seems like gettext only searches for locale information in /usr/share/locale, return $gettext_obj->get(shift); } -[[tag patch]] --- [[ThomasBleher]] \ No newline at end of file +[[!tag patch]] +-- [[ThomasBleher]] + +> According to my testing, this patch makes ikiwiki's localisation fail for +> `LANG=fr_FR` when everything is installed to the default locations, +> though `LANG=es_ES` works. I don't understand this behavior, especially +> since strace shows it successfully opening the file +> `/usr/share/locale/fr/LC_MESSAGES/ikiwiki.mo`. +> +> (Also, it should check that $installdir is set before using it.) +> +> --[[Joey]]