Revision 440ad8d3
Von Thomas Heck vor mehr als 11 Jahren hinzugefügt
scripts/locales.pl | ||
---|---|---|
143 | 143 |
); |
144 | 144 |
|
145 | 145 |
open(my $js_file, '>:encoding(utf8)', $javascript_output_dir .'/locale/'. $locale .'.js') || die; |
146 |
print $js_file '{'; |
|
146 |
print $js_file 'namespace("kivi").setupLocale({';
|
|
147 | 147 |
my $first_entry = 1; |
148 | 148 |
for my $key (sort(keys(%jslocale))) { |
149 | 149 |
print $js_file ((!$first_entry ? ',' : '') ."\n". _double_quote($key) .':'. _double_quote($self->{texts}{$key})); |
150 | 150 |
$first_entry = 0; |
151 | 151 |
} |
152 |
print $js_file ("\n".'}'."\n"); |
|
152 |
print $js_file ("\n"); |
|
153 |
print $js_file ('});'."\n"); |
|
153 | 154 |
close($js_file); |
154 | 155 |
|
155 | 156 |
foreach my $text (keys %$missing) { |
Auch abrufbar als: Unified diff
JS-Übersetzung immer in HEAD laden