]> git.wh0rd.org - tt-rss.git/blobdiff - localized_js.php
fix help not loading on ? press
[tt-rss.git] / localized_js.php
index 08eec1affda61182d9633c2ddcc4109fb2274585..24846a3205336e5d30a5359ba72c2fb8dff9dbab 100644 (file)
@@ -1,9 +1,12 @@
 <?php
+       set_include_path(get_include_path() . PATH_SEPARATOR . 
+               dirname(__FILE__) . "/include");
+
        define('DISABLE_SESSIONS', true);
 
        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 +31,12 @@ function __(msg) {
 }
 
 <?php
+       $l10n = _get_reader();
 
-       if (ENABLE_TRANSLATIONS) {
-
-               $l10n = _get_reader();
+       for ($i = 0; $i < $l10n->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);
        }
-
 ?>