]> git.wh0rd.org - tt-rss.git/blobdiff - localized_js.php
update_daemon: use getopt; make things a bit more configurable, add help
[tt-rss.git] / localized_js.php
index 5d443d4ab776f9a4d7407390ec4274afc584f4f4..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,7 +31,6 @@ function __(msg) {
 }
 
 <?php
-
        $l10n = _get_reader();
 
        for ($i = 0; $i < $l10n->total; $i++) {
@@ -38,5 +39,4 @@ function __(msg) {
 
                print T_js_decl($orig, $translation);
        }
-
 ?>