X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=localized_js.php;h=46dbe2961131e3ce93904731a344d3cce7ebfc87;hb=88e8fb3a7132d1321ab65b66a19a67df890c402d;hp=77b9ea2f50c3cadff4dd326d15fcd7fe61df09b7;hpb=8be83f424aafbcb652ae26354e3725f8f10b55d7;p=tt-rss.git diff --git a/localized_js.php b/localized_js.php index 77b9ea2f..46dbe296 100644 --- a/localized_js.php +++ b/localized_js.php @@ -1,19 +1,23 @@ - var T_messages = new Object(); @@ -22,109 +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); + } ?>