diff options
Diffstat (limited to 'l10n/l10n.pl')
-rw-r--r-- | l10n/l10n.pl | 15 |
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 ); } |