summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--localized_js.php13
1 files changed, 8 insertions, 5 deletions
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) {
<?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);
+ }
}
?>