From f72476db9f81a6f1a1e65effabcc8d321797c589 Mon Sep 17 00:00:00 2001 From: dg9vh Date: Wed, 15 Mar 2017 13:20:28 +0000 Subject: [PATCH] Default-Locale set, small bugfixes. --- ajax.php | 2 ++ credits.php | 14 ++++++++++++++ index.php | 3 +++ setup.php | 13 +++++++++++++ 4 files changed, 32 insertions(+) diff --git a/ajax.php b/ajax.php index 4e330d4..e73228b 100644 --- a/ajax.php +++ b/ajax.php @@ -4,6 +4,8 @@ header("Cache-Control: no-cache, must-revalidate"); header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); include "config/config.php"; +if (!defined("LOCALE")) + define("LOCALE", "en_GB"); include "locale/".LOCALE."/settings.php"; $codeset = "UTF8"; putenv('LANG='.LANG_LOCALE.'.'.$codeset); diff --git a/credits.php b/credits.php index 69733f7..6effd70 100644 --- a/credits.php +++ b/credits.php @@ -1,3 +1,17 @@ + diff --git a/index.php b/index.php index 73c931f..3d43208 100644 --- a/index.php +++ b/index.php @@ -10,6 +10,9 @@ header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // do not touch this includes!!! Never ever!!! include "config/config.php"; +if (!defined("LOCALE")) + define("LOCALE", "en_GB"); + include "locale/".LOCALE."/settings.php"; $codeset = "UTF8"; putenv('LANG='.LANG_LOCALE.'.'.$codeset); diff --git a/setup.php b/setup.php index 83b1a7d..b041ea3 100644 --- a/setup.php +++ b/setup.php @@ -1,5 +1,18 @@