]> wagnertech.de Git - mfinanz.git/blobdiff - scripts/locales.pl
Überreste von "gifi" entfernen (siehe 0daf163)
[mfinanz.git] / scripts / locales.pl
index d7b28a3db79bfc2f65efb0edadb7ec76bab14672..b6665588abd2ce102ea897c490baa663758f1ba0 100755 (executable)
@@ -143,13 +143,14 @@ generate_file(
 );
 
 open(my $js_file, '>:encoding(utf8)', $javascript_output_dir .'/locale/'. $locale .'.js') || die;
-print $js_file '{';
+print $js_file 'namespace("kivi").setupLocale({';
 my $first_entry = 1;
 for my $key (sort(keys(%jslocale))) {
   print $js_file ((!$first_entry ? ',' : '') ."\n". _double_quote($key) .':'. _double_quote($self->{texts}{$key}));
   $first_entry = 0;
 }
-print $js_file ("\n".'}'."\n");
+print $js_file ("\n");
+print $js_file ('});'."\n");
 close($js_file);
 
   foreach my $text (keys %$missing) {