localized_js: disable when translations are disabled in config.php

master
Andrew Dolgov 15 years ago
parent 47179c0e88
commit 5eee1b4247

@ -30,13 +30,16 @@ function __(msg) {
<?php
$l10n = _get_reader();
if (ENABLE_TRANSLATIONS) {
for ($i = 0; $i < $l10n->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);
}
}
?>

Loading…
Cancel
Save