diff --git a/localized_js.php b/localized_js.php index 5d443d4ab..0d66da575 100644 --- a/localized_js.php +++ b/localized_js.php @@ -30,13 +30,16 @@ function __(msg) { total; $i++) { - $orig = $l10n->get_original_string($i); - $translation = __($orig); + $l10n = _get_reader(); - print T_js_decl($orig, $translation); + for ($i = 0; $i < $l10n->total; $i++) { + $orig = $l10n->get_original_string($i); + $translation = __($orig); + + print T_js_decl($orig, $translation); + } } ?>