localized_js: disable when translations are disabled in config.php
This commit is contained in:
parent
47179c0e88
commit
5eee1b4247
|
@ -30,6 +30,8 @@ function __(msg) {
|
|||
|
||||
<?php
|
||||
|
||||
if (ENABLE_TRANSLATIONS) {
|
||||
|
||||
$l10n = _get_reader();
|
||||
|
||||
for ($i = 0; $i < $l10n->total; $i++) {
|
||||
|
@ -38,5 +40,6 @@ function __(msg) {
|
|||
|
||||
print T_js_decl($orig, $translation);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue