From: Frank Lichtenheld Date: Thu, 18 Oct 2007 21:00:07 +0000 (+0200) Subject: Actually use langs.*.po X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=0400a01d5bbcf0ca210f15b1423d4e90071fa4fd;p=deb%2Fpackages.git Actually use langs.*.po Add two missing bindtextdomain calls so that gettext can actually find the translations from the langs domain. --- diff --git a/bin/create_index_pages b/bin/create_index_pages index 0eaf63e..d76beba 100755 --- a/bin/create_index_pages +++ b/bin/create_index_pages @@ -27,8 +27,9 @@ delete $ENV{'LANG'}; delete $ENV{'LC_ALL'}; delete $ENV{'LC_MESSAGES'}; bindtextdomain ( 'pdo', $LOCALES ); -bindtextdomain ( 'sections', $LOCALES ); bindtextdomain ( 'templates', $LOCALES ); +bindtextdomain ( 'sections', $LOCALES ); +bindtextdomain ( 'langs', $LOCALES ); textdomain( 'pdo' ); my $wwwdir = "$TOPDIR/www"; diff --git a/lib/Packages/Dispatcher.pm b/lib/Packages/Dispatcher.pm index e5c35d4..ff68426 100755 --- a/lib/Packages/Dispatcher.pm +++ b/lib/Packages/Dispatcher.pm @@ -103,6 +103,7 @@ sub do_dispatch { " http_lang=$http_lang", 1 ) if DEBUG; bindtextdomain ( 'pdo', $LOCALES ); bindtextdomain ( 'templates', $LOCALES ); + bindtextdomain ( 'langs', $LOCALES ); textdomain( 'pdo' ); # backwards compatibility stuff