summaryrefslogtreecommitdiff
path: root/localized_js.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-03-18 19:25:06 +0300
committerAndrew Dolgov <[email protected]>2011-03-18 19:25:06 +0300
commit7b26a148b0fcd904ea5425fd5d317b53704822dc (patch)
treee1c64dd9c6ca4cbe8c74799d10cd5a5be0bf70b5 /localized_js.php
parent565ca5653c6ee1c2547a9b478cd8084fa3d825c9 (diff)
config: remove ENABLE_TRANSLATIONS
Diffstat (limited to 'localized_js.php')
-rw-r--r--localized_js.php17
1 files changed, 6 insertions, 11 deletions
diff --git a/localized_js.php b/localized_js.php
index 08eec1aff..e51e97317 100644
--- a/localized_js.php
+++ b/localized_js.php
@@ -3,7 +3,7 @@
require "functions.php";
header("Content-Type: text/plain; charset=UTF-8");
-
+
function T_js_decl($s1, $s2) {
if ($s1 && $s2) {
$s1 = preg_replace("/\n/", "", $s1);
@@ -28,17 +28,12 @@ function __(msg) {
}
<?php
+ $l10n = _get_reader();
- if (ENABLE_TRANSLATIONS) {
-
- $l10n = _get_reader();
+ for ($i = 0; $i < $l10n->total; $i++) {
+ $orig = $l10n->get_original_string($i);
+ $translation = __($orig);
- for ($i = 0; $i < $l10n->total; $i++) {
- $orig = $l10n->get_original_string($i);
- $translation = __($orig);
-
- print T_js_decl($orig, $translation);
- }
+ print T_js_decl($orig, $translation);
}
-
?>