Revision a8f5fe51
Von Thomas Heck vor mehr als 11 Jahren hinzugefügt
scripts/locales.pl | ||
---|---|---|
140 | 140 |
); |
141 | 141 |
|
142 | 142 |
open(my $js_file, '>:encoding(utf8)', $locales_dir .'/js.js') || die; |
143 |
print $js_file '{'."\n";
|
|
143 |
print $js_file '{'; |
|
144 | 144 |
my $first_entry = 1; |
145 | 145 |
for my $key (sort(keys(%jslocale))) { |
146 |
print $js_file (!$first_entry ? ',' : '') . _double_quote($key) .':'. _double_quote($self->{texts}{$key}) ."\n";
|
|
146 |
print $js_file ((!$first_entry ? ',' : '') ."\n". _double_quote($key) .':'. _double_quote($self->{texts}{$key}));
|
|
147 | 147 |
$first_entry = 0; |
148 | 148 |
} |
149 |
print $js_file '}'."\n";
|
|
149 |
print $js_file ("\n".'}'."\n");
|
|
150 | 150 |
close($js_file); |
151 | 151 |
|
152 | 152 |
foreach my $text (keys %$missing) { |
Auch abrufbar als: Unified diff
Ausgabe der JS-Übersetzung überarbeitet