From c25474e2c587a394c33af4748733a604b7d2a711 Mon Sep 17 00:00:00 2001 From: Jakob Sack Date: Tue, 21 Jun 2011 16:19:30 +0200 Subject: [PATCH] Updated l10n script, fixed translation in admin/users template --- admin/templates/users.php | 2 +- l10n/l10n.pl | 15 ++++++--------- l10n/templates/admin.pot | 6 +++++- l10n/templates/core.pot | 2 +- l10n/templates/help.pot | 2 +- l10n/templates/log.pot | 2 +- l10n/templates/settings.pot | 2 +- 7 files changed, 16 insertions(+), 15 deletions(-) diff --git a/admin/templates/users.php b/admin/templates/users.php index 0c26fd3bdf4..70fc8b3ab2f 100644 --- a/admin/templates/users.php +++ b/admin/templates/users.php @@ -1,4 +1,4 @@ -

Users

+

t( 'Users' ); ?>

diff --git a/l10n/l10n.pl b/l10n/l10n.pl index 88abc821e95..0ad33d2116b 100644 --- a/l10n/l10n.pl +++ b/l10n/l10n.pl @@ -54,16 +54,13 @@ if( $task eq 'read' ){ pop( @temp ); my $app = pop( @temp ); chdir( $dir ); - foreach my $language ( @languages ){ - my $output = "${whereami}/$language/$app.po"; - $output .= 't' if $language eq 'templates'; + my $output = "${whereami}/templates/$app.pot"; - if( -e $output ){ - `xgettext --files-from=xgettextfiles --join-existing --output="$output" --keyword=t` - } - else{ - `xgettext --files-from=xgettextfiles --output="$output" --keyword=t` - } + if( -e $output ){ + `xgettext --files-from=xgettextfiles --join-existing --output="$output" --keyword=t` + } + else{ + `xgettext --files-from=xgettextfiles --output="$output" --keyword=t` } chdir( $whereami ); } diff --git a/l10n/templates/admin.pot b/l10n/templates/admin.pot index c683082b6f8..cb01fee4d23 100644 --- a/l10n/templates/admin.pot +++ b/l10n/templates/admin.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-06-20 22:00+0200\n" +"POT-Creation-Date: 2011-06-21 16:19+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -89,3 +89,7 @@ msgstr "" #: ../templates/users.php:109 msgid "Do you really want to delete group" msgstr "" + +#: ../templates/users.php:1 +msgid "Users" +msgstr "" diff --git a/l10n/templates/core.pot b/l10n/templates/core.pot index ef4f80b580b..679ca60a989 100644 --- a/l10n/templates/core.pot +++ b/l10n/templates/core.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-06-20 22:00+0200\n" +"POT-Creation-Date: 2011-06-21 16:19+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/l10n/templates/help.pot b/l10n/templates/help.pot index cd06f9b10ad..43b9b26ff0c 100644 --- a/l10n/templates/help.pot +++ b/l10n/templates/help.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-06-20 22:00+0200\n" +"POT-Creation-Date: 2011-06-21 16:19+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/l10n/templates/log.pot b/l10n/templates/log.pot index c73912a6262..91339d45132 100644 --- a/l10n/templates/log.pot +++ b/l10n/templates/log.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-06-20 22:00+0200\n" +"POT-Creation-Date: 2011-06-21 16:19+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/l10n/templates/settings.pot b/l10n/templates/settings.pot index 55f3298f6f9..ff8029ae465 100644 --- a/l10n/templates/settings.pot +++ b/l10n/templates/settings.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-06-20 22:00+0200\n" +"POT-Creation-Date: 2011-06-21 16:19+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" -- 2.39.5