Default-Locale set, small bugfixes.

This commit is contained in:
dg9vh 2017-03-15 13:20:28 +00:00
parent fccec8b6f2
commit f72476db9f
4 changed files with 32 additions and 0 deletions

View file

@ -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);

View file

@ -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>

View file

@ -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);

View file

@ -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>