From c25474e2c587a394c33af4748733a604b7d2a711 Mon Sep 17 00:00:00 2001
From: Jakob Sack <kde@jakobsack.de>
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 0c26fd3bdf..70fc8b3ab2 100644
--- a/admin/templates/users.php
+++ b/admin/templates/users.php
@@ -1,4 +1,4 @@
-<h2>Users</h2>
+<h2><?php echo $l->t( 'Users' ); ?></h2>
 
 <table id="usertable">
 	<thead>
diff --git a/l10n/l10n.pl b/l10n/l10n.pl
index 88abc821e9..0ad33d2116 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 c683082b6f..cb01fee4d2 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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\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 ef4f80b580..679ca60a98 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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/l10n/templates/help.pot b/l10n/templates/help.pot
index cd06f9b10a..43b9b26ff0 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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/l10n/templates/log.pot b/l10n/templates/log.pot
index c73912a626..91339d4513 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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/l10n/templates/settings.pot b/l10n/templates/settings.pot
index 55f3298f6f..ff8029ae46 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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
-- 
GitLab