]> git.wh0rd.org - tt-rss.git/commitdiff
properly enable gettext stuff when needed
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 19 May 2007 05:13:35 +0000 (06:13 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 19 May 2007 05:13:35 +0000 (06:13 +0100)
functions.php

index d3245ce531bf9bf51ba6a5c1544b2df279a14acb..0336602e30a2e2dbcd34a30107e340b133c53dcd 100644 (file)
@@ -6,22 +6,11 @@
                define('DEFAULT_ERROR_LEVEL', E_ERROR | E_WARNING | E_PARSE);
        } */
 
-       if (ENABLE_TRANSLATIONS == true) { 
-               require_once "accept-to-gettext.php";
-               require_once "gettext/gettext.inc";
-       } else {
-               function __($msg) {
-                       return $msg;
-               }
-               function startup_gettext() {
-                       // no-op
-                       return true;
-               }
-       }
-
        require_once 'config.php';
 
        if (ENABLE_TRANSLATIONS == true) { 
+               require_once "accept-to-gettext.php";
+               require_once "gettext/gettext.inc";
 
                function startup_gettext() {
        
                }
 
                startup_gettext();
+
+       } else {
+               function __($msg) {
+                       return $msg;
+               }
+               function startup_gettext() {
+                       // no-op
+                       return true;
+               }
        }
 
        require_once 'db-prefs.php';