summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-05-19 06:13:35 +0100
committerAndrew Dolgov <[email protected]>2007-05-19 06:13:35 +0100
commit865220a488b853f25f15f5516c848ee540fa7361 (patch)
tree44a54e2290e015789217dcb3c9e7e49a043883a5 /functions.php
parentde5b8ebcdacb441d7011d9d8e281bb0648e6afe1 (diff)
properly enable gettext stuff when needed
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php24
1 files changed, 11 insertions, 13 deletions
diff --git a/functions.php b/functions.php
index d3245ce53..0336602e3 100644
--- a/functions.php
+++ b/functions.php
@@ -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() {
@@ -37,6 +26,15 @@
}
startup_gettext();
+
+ } else {
+ function __($msg) {
+ return $msg;
+ }
+ function startup_gettext() {
+ // no-op
+ return true;
+ }
}
require_once 'db-prefs.php';