update l10n script to better read js files

This commit is contained in:
Robin Appelman 2012-06-06 00:11:45 +02:00
parent e6c4e53486
commit 549889d3cb
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ if( $task eq 'read' ){
foreach my $file ( @totranslate ){ foreach my $file ( @totranslate ){
next if $ignore{$file}; next if $ignore{$file};
my $keyword = ( $file =~ /\.js$/ ? 't:2' : 't'); my $keyword = ( $file =~ /\.js$/ ? 't:2' : 't');
my $language = ( $file =~ /\.js$/ ? 'C' : 'PHP'); my $language = ( $file =~ /\.js$/ ? 'Perl' : 'PHP');
my $joinexisting = ( -e $output ? '--join-existing' : ''); my $joinexisting = ( -e $output ? '--join-existing' : '');
print " Reading $file\n"; print " Reading $file\n";
`xgettext --output="$output" $joinexisting --keyword=$keyword --language=$language "$file"`; `xgettext --output="$output" $joinexisting --keyword=$keyword --language=$language "$file"`;