summaryrefslogtreecommitdiffstats
path: root/l10n/l10n.pl
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-07-29 20:42:24 +0200
committerJakob Sack <kde@jakobsack.de>2011-07-29 20:42:24 +0200
commit2bfad189e7e9c8ea78e4b5f78c9e779074dd991c (patch)
tree697204517c95647e382a4723545ade3950420913 /l10n/l10n.pl
parente69079f9354464d21f31ae8b6d9e47988ba22fb4 (diff)
parentd12d08e2f3553b06df6371535f971c9f193bd388 (diff)
downloadnextcloud-server-2bfad189e7e9c8ea78e4b5f78c9e779074dd991c.tar.gz
nextcloud-server-2bfad189e7e9c8ea78e4b5f78c9e779074dd991c.zip
Merge branch 'master' of git://anongit.kde.org/owncloud into autoload
Conflicts: lib/base.php lib/filestorage.php
Diffstat (limited to 'l10n/l10n.pl')
-rw-r--r--l10n/l10n.pl12
1 files changed, 4 insertions, 8 deletions
diff --git a/l10n/l10n.pl b/l10n/l10n.pl
index 0ad33d2116b..b993727e8f1 100644
--- a/l10n/l10n.pl
+++ b/l10n/l10n.pl
@@ -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 );
}
}