web commit by ThomasBleher
authorJoey Hess <joey@wren.kitenet.net>
Mon, 5 Nov 2007 11:33:46 +0000 (06:33 -0500)
committerJoey Hess <joey@wren.kitenet.net>
Mon, 5 Nov 2007 11:33:46 +0000 (06:33 -0500)
doc/bugs/search_for_locale_data_in_the_installed_location.mdwn [new file with mode: 0644]

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
new file mode 100644 (file)
index 0000000..ad379da
--- /dev/null
@@ -0,0 +1,15 @@
+It seems like gettext only searches for locale information in /usr/share/locale, by default. I installed ikiwiki into /usr/local, therefore the locale information wasn't found. This patch fixes the issue:
+
+    --- a/IkiWiki.pm
+    +++ b/IkiWiki.pm
+    @@ -1057,6 +1057,7 @@ sub gettext { #{{{
+                                    $gettext_obj=undef;
+                                    return shift;
+                            }
+    +                       $gettext_obj->dir("$installdir/share/locale/");
+                    }
+                    return $gettext_obj->get(shift);
+            }
+
+[[tag patch]]
+-- [[ThomasBleher]]
\ No newline at end of file