From 549889d3cbc75e184f27973d7e020b7985189af1 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Wed, 6 Jun 2012 00:11:45 +0200
Subject: [PATCH] update l10n script to better read js files

---
 l10n/l10n.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/l10n/l10n.pl b/l10n/l10n.pl
index 27b14c41be..0f75cc5c7e 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"`;
-- 
GitLab