X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=localized_js.php;h=24846a3205336e5d30a5359ba72c2fb8dff9dbab;hb=35b9844be1b05e1d75646f53dc080d106ab5770e;hp=bfb60cba6a0439503ef30a6b71f66da5277c54a8;hpb=df9e0a3b46b9053f753b51cd19c5150b04a2bcf8;p=tt-rss.git diff --git a/localized_js.php b/localized_js.php index bfb60cba..24846a32 100644 --- a/localized_js.php +++ b/localized_js.php @@ -1,19 +1,23 @@ - var T_messages = new Object(); @@ -22,73 +26,17 @@ 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); + } ?>