update l10n script to better read js files
This commit is contained in:
parent
e6c4e53486
commit
549889d3cb
|
@ -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"`;
|
||||||
|
|
Loading…
Reference in New Issue