]> source.dussan.org Git - nextcloud-server.git/commitdiff
updated localization script and removed duplicate strings
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Wed, 27 Jul 2011 10:05:41 +0000 (12:05 +0200)
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Wed, 27 Jul 2011 10:05:41 +0000 (12:05 +0200)
l10n/l10n.pl
l10n/templates/admin.pot
l10n/templates/core.pot
l10n/templates/help.pot
l10n/templates/log.pot
l10n/templates/settings.pot

index 0ad33d2116bce5990ca17e6bb5b7e68ddde93a53..b993727e8f1ad5ec1197bcdf1faf87a33d9db8e4 100644 (file)
@@ -3,6 +3,7 @@ use strict;
 use Locale::PO;
 use Cwd;
 use Data::Dumper;
+use File::Path;
 
 sub crawl{
        my( $dir ) = @_;
@@ -28,7 +29,7 @@ sub crawl{
 my $task = shift( @ARGV );
 my $place = '..';
 
-die( "Usuage: l10n.pl task\ntask: read, write\n") unless $task && $place;
+die( "Usage: l10n.pl task\ntask: read, write\n" ) unless $task && $place;
 
 # Our current position
 my $whereami = cwd();
@@ -38,6 +39,7 @@ die( "Program must be executed in a l10n-folder called 'l10n'" ) unless $wheream
 my @dirs = crawl( $place );
 
 # Languages
+rmtree( 'templates' );
 mkdir( 'templates' ) unless -d 'templates';
 
 my @languages = ();
@@ -55,13 +57,7 @@ if( $task eq 'read' ){
                my $app = pop( @temp );
                chdir( $dir );
                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`
-               }
+               `xgettext --files-from=xgettextfiles --output="$output" --keyword=t`;
                chdir( $whereami );
        }
 }
index 411ecacce97ea7f6d61670c48a8131e59ae0b985..d6233365185b3ff36859f37c75ff48192dc13db9 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-07-27 08:52+0200\n"
+"POT-Creation-Date: 2011-07-27 12:03+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"
index 8b73bf7ef10ac8111517468afed5d3420b244939..6bcadf8cfc7bd29d6e491323bf0fd62ea4ce6cba 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-07-27 08:52+0200\n"
+"POT-Creation-Date: 2011-07-27 12:03+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"
index 362fdf123d789d5641795f82fe9cfb950e8fb078..e5ffb5a4cf5c2790e1c4b4206b467949e7439ca6 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-07-27 08:52+0200\n"
+"POT-Creation-Date: 2011-07-27 12:03+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"
index 54b633c2f1b0a7826c33f79d0571339ba8776403..ea98e5c2b14b303c32396c512586cd9bd4ac2da6 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-07-27 08:52+0200\n"
+"POT-Creation-Date: 2011-07-27 12:03+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"
index 8c077f56889abef7998773f79fd340f4c71a20ee..24e255fa2590f2596c8260839b9aa9b9875e668e 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-07-27 08:52+0200\n"
+"POT-Creation-Date: 2011-07-27 12:03+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"