Skip to content
Snippets Groups Projects
Commit b57cc67f authored by Thomas Müller's avatar Thomas Müller
Browse files

Python language setting on gettext

gettext with language setting 'Python' gives better results than 'Perl' 
parent 50d7cfbb
Branches
No related tags found
No related merge requests found
......@@ -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"`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment