|
|
@ -6,11 +6,23 @@
|
|
|
|
define('DEFAULT_ERROR_LEVEL', E_ERROR | E_WARNING | E_PARSE);
|
|
|
|
define('DEFAULT_ERROR_LEVEL', E_ERROR | E_WARNING | E_PARSE);
|
|
|
|
} */
|
|
|
|
} */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ENABLE_TRANSLATIONS == true) {
|
|
|
|
require_once "accept-to-gettext.php";
|
|
|
|
require_once "accept-to-gettext.php";
|
|
|
|
require_once "gettext/gettext.inc";
|
|
|
|
require_once "gettext/gettext.inc";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
function __($msg) {
|
|
|
|
|
|
|
|
return $msg;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function startup_gettext() {
|
|
|
|
|
|
|
|
// no-op
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
require_once 'config.php';
|
|
|
|
require_once 'config.php';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ENABLE_TRANSLATIONS == true) {
|
|
|
|
|
|
|
|
|
|
|
|
function startup_gettext() {
|
|
|
|
function startup_gettext() {
|
|
|
|
|
|
|
|
|
|
|
|
# Get locale from Accept-Language header
|
|
|
|
# Get locale from Accept-Language header
|
|
|
@ -24,7 +36,6 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (ENABLE_TRANSLATIONS == true) {
|
|
|
|
|
|
|
|
startup_gettext();
|
|
|
|
startup_gettext();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|