From 7b26a148b0fcd904ea5425fd5d317b53704822dc Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 18 Mar 2011 19:25:06 +0300 Subject: config: remove ENABLE_TRANSLATIONS --- localized_js.php | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'localized_js.php') 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) { } 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); } - ?> -- cgit v1.2.3-54-g00ecf