From 57c7aa0f335d1cfef65646c958b838fd69a9ba5d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 13 Jan 2010 14:11:16 +0300 Subject: [PATCH] localized_js: update automatically --- localized_js.php | 195 ++++++----------------------------------------- 1 file changed, 25 insertions(+), 170 deletions(-) diff --git a/localized_js.php b/localized_js.php index 352a090b2..5d443d4ab 100644 --- a/localized_js.php +++ b/localized_js.php @@ -1,22 +1,21 @@ - var T_messages = new Object(); @@ -25,163 +24,19 @@ function __(msg) { if (T_messages[msg]) { return T_messages[msg]; } else { - debug('[gettext] not found: ' + msg); return msg; } } total; $i++) { + $orig = $l10n->get_original_string($i); + $translation = __($orig); + + print T_js_decl($orig, $translation); + } + ?>