]> git.wh0rd.org - tt-rss.git/blobdiff - localized_js.php
atom xsl: fix missing feed icon
[tt-rss.git] / localized_js.php
index 0d66da575d6d8b610f91a36df4994a437faeb390..46dbe2961131e3ce93904731a344d3cce7ebfc87 100644 (file)
@@ -1,10 +1,12 @@
 <?php
-       error_reporting(E_ERROR | E_WARNING | E_PARSE);
+       set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR .
+               get_include_path());
+
        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);
@@ -29,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);
        }
-
 ?>