From: Thomas Heck Date: Thu, 28 Feb 2013 11:04:19 +0000 (+0100) Subject: Ausgabe der JS-Übersetzung überarbeitet X-Git-Tag: release-3.1.0beta1~554^2~1^2~5 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a8f5fe51824487af16bf580be9262b6fbe68a64a;p=kivitendo-erp.git Ausgabe der JS-Übersetzung überarbeitet --- diff --git a/scripts/locales.pl b/scripts/locales.pl index 00dc7fe31..5807f4b26 100755 --- a/scripts/locales.pl +++ b/scripts/locales.pl @@ -140,13 +140,13 @@ generate_file( ); open(my $js_file, '>:encoding(utf8)', $locales_dir .'/js.js') || die; -print $js_file '{'."\n"; +print $js_file '{'; my $first_entry = 1; for my $key (sort(keys(%jslocale))) { - print $js_file (!$first_entry ? ',' : '') . _double_quote($key) .':'. _double_quote($self->{texts}{$key}) ."\n"; + print $js_file ((!$first_entry ? ',' : '') ."\n". _double_quote($key) .':'. _double_quote($self->{texts}{$key})); $first_entry = 0; } -print $js_file '}'."\n"; +print $js_file ("\n".'}'."\n"); close($js_file); foreach my $text (keys %$missing) {