From: Robin Appelman Date: Tue, 5 Jun 2012 22:11:45 +0000 (+0200) Subject: update l10n script to better read js files X-Git-Tag: v4.5.0beta1~74^2~424^2~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=549889d3cbc75e184f27973d7e020b7985189af1;p=nextcloud-server.git update l10n script to better read js files --- diff --git a/l10n/l10n.pl b/l10n/l10n.pl index 27b14c41bef..0f75cc5c7e9 100644 --- a/l10n/l10n.pl +++ b/l10n/l10n.pl @@ -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"`;