update l10n script to better read js files
This commit is contained in:
parent
e6c4e53486
commit
549889d3cb
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ if( $task eq 'read' ){
|
|||
foreach my $file ( @totranslate ){
|
||||
next if $ignore{$file};
|
||||
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' : '');
|
||||
print " Reading $file\n";
|
||||
`xgettext --output="$output" $joinexisting --keyword=$keyword --language=$language "$file"`;
|
||||
|
|
Loading…
Reference in a new issue