Python language setting on gettext
gettext with language setting 'Python' gives better results than 'Perl'
This commit is contained in:
parent
50d7cfbbe7
commit
b57cc67f60
|
@ -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$/ ? 'Perl' : 'PHP');
|
||||
my $language = ( $file =~ /\.js$/ ? 'Python' : 'PHP');
|
||||
my $joinexisting = ( -e $output ? '--join-existing' : '');
|
||||
print " Reading $file\n";
|
||||
`xgettext --output="$output" $joinexisting --keyword=$keyword --language=$language "$file"`;
|
||||
|
|
Loading…
Reference in New Issue