From: Andrew Dolgov Date: Wed, 13 Jan 2010 11:11:16 +0000 (+0300) Subject: localized_js: update automatically X-Git-Tag: 1.4.0~65 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=57c7aa0f335d1cfef65646c958b838fd69a9ba5d;p=tt-rss.git localized_js: update automatically --- diff --git a/localized_js.php b/localized_js.php index 352a090b..5d443d4a 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); + } + ?>