summaryrefslogtreecommitdiffstats
path: root/l10n/l10n.pl
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-06-21 16:19:30 +0200
committerJakob Sack <kde@jakobsack.de>2011-06-21 16:19:30 +0200
commitc25474e2c587a394c33af4748733a604b7d2a711 (patch)
tree59a6871bfb29ed0d6515bd1601d8a79bdede93be /l10n/l10n.pl
parent34de2cacd137a42bb7705d869aecdc938993e8ff (diff)
downloadnextcloud-server-c25474e2c587a394c33af4748733a604b7d2a711.tar.gz
nextcloud-server-c25474e2c587a394c33af4748733a604b7d2a711.zip
Updated l10n script, fixed translation in admin/users template
Diffstat (limited to 'l10n/l10n.pl')
-rw-r--r--l10n/l10n.pl15
1 files changed, 6 insertions, 9 deletions
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 );
}