From 0400a01d5bbcf0ca210f15b1423d4e90071fa4fd Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Thu, 18 Oct 2007 23:00:07 +0200 Subject: [PATCH] Actually use langs.*.po Add two missing bindtextdomain calls so that gettext can actually find the translations from the langs domain. --- bin/create_index_pages | 3 ++- lib/Packages/Dispatcher.pm | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2