Python language setting on gettext

gettext with language setting 'Python' gives better results than 'Perl'
This commit is contained in:
Thomas Müller 2012-09-26 14:17:12 +03:00
parent 50d7cfbbe7
commit b57cc67f60
1 changed files with 1 additions and 1 deletions

View File

@ -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"`;