Default-Locale set, small bugfixes.
This commit is contained in:
parent
fccec8b6f2
commit
f72476db9f
4 changed files with 32 additions and 0 deletions
2
ajax.php
2
ajax.php
|
@ -4,6 +4,8 @@ header("Cache-Control: no-cache, must-revalidate");
|
||||||
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
|
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
|
||||||
include "config/config.php";
|
include "config/config.php";
|
||||||
|
|
||||||
|
if (!defined("LOCALE"))
|
||||||
|
define("LOCALE", "en_GB");
|
||||||
include "locale/".LOCALE."/settings.php";
|
include "locale/".LOCALE."/settings.php";
|
||||||
$codeset = "UTF8";
|
$codeset = "UTF8";
|
||||||
putenv('LANG='.LANG_LOCALE.'.'.$codeset);
|
putenv('LANG='.LANG_LOCALE.'.'.$codeset);
|
||||||
|
|
14
credits.php
14
credits.php
|
@ -1,3 +1,17 @@
|
||||||
|
<?php
|
||||||
|
include "config/config.php";
|
||||||
|
if (!defined("LOCALE"))
|
||||||
|
define("LOCALE", "en_GB");
|
||||||
|
|
||||||
|
include "locale/".LOCALE."/settings.php";
|
||||||
|
$codeset = "UTF8";
|
||||||
|
putenv('LANG='.LANG_LOCALE.'.'.$codeset);
|
||||||
|
putenv('LANGUAGE='.LANG_LOCALE.'.'.$codeset);
|
||||||
|
bind_textdomain_codeset('messages', $codeset);
|
||||||
|
bindtextdomain('messages', dirname(__FILE__).'/locale/');
|
||||||
|
setlocale(LC_ALL, LANG_LOCALE.'.'.$codeset);
|
||||||
|
textdomain('messages');
|
||||||
|
?>
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
|
|
|
@ -10,6 +10,9 @@ header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
|
||||||
// do not touch this includes!!! Never ever!!!
|
// do not touch this includes!!! Never ever!!!
|
||||||
include "config/config.php";
|
include "config/config.php";
|
||||||
|
|
||||||
|
if (!defined("LOCALE"))
|
||||||
|
define("LOCALE", "en_GB");
|
||||||
|
|
||||||
include "locale/".LOCALE."/settings.php";
|
include "locale/".LOCALE."/settings.php";
|
||||||
$codeset = "UTF8";
|
$codeset = "UTF8";
|
||||||
putenv('LANG='.LANG_LOCALE.'.'.$codeset);
|
putenv('LANG='.LANG_LOCALE.'.'.$codeset);
|
||||||
|
|
13
setup.php
13
setup.php
|
@ -1,5 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
include "config/config.php";
|
include "config/config.php";
|
||||||
|
|
||||||
|
if (!defined("LOCALE"))
|
||||||
|
define("LOCALE", "en_GB");
|
||||||
|
|
||||||
|
include "locale/".LOCALE."/settings.php";
|
||||||
|
$codeset = "UTF8";
|
||||||
|
putenv('LANG='.LANG_LOCALE.'.'.$codeset);
|
||||||
|
putenv('LANGUAGE='.LANG_LOCALE.'.'.$codeset);
|
||||||
|
bind_textdomain_codeset('messages', $codeset);
|
||||||
|
bindtextdomain('messages', dirname(__FILE__).'/locale/');
|
||||||
|
setlocale(LC_ALL, LANG_LOCALE.'.'.$codeset);
|
||||||
|
textdomain('messages');
|
||||||
|
|
||||||
include "include/tools.php";
|
include "include/tools.php";
|
||||||
?>
|
?>
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
|
Loading…
Reference in a new issue