mirror of
https://github.com/rottenwheel/moner.ooo.git
synced 2024-12-22 16:17:46 +00:00
Update Language (zh-CN)
Chinese (PRC – People’s Republic of China) Language has now been added correctly. Chinese (Taiwan) would now also be possible.
This commit is contained in:
parent
83edcdfe2c
commit
b3564695e9
1 changed files with 6 additions and 1 deletions
|
@ -68,8 +68,13 @@ $MXN = $api->mxn;
|
||||||
// Lädt die Sprachdatei, nach der Sprache die im Browser eingestellt wurde
|
// Lädt die Sprachdatei, nach der Sprache die im Browser eingestellt wurde
|
||||||
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
|
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
|
||||||
|
|
||||||
$acceptLang = ['de','es','it','zh'];
|
if($lang == 'zh'){
|
||||||
|
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 5);
|
||||||
|
}
|
||||||
|
|
||||||
|
$acceptLang = ['de','es','it','zh-CN'];
|
||||||
$lang = in_array($lang, $acceptLang) ? $lang : 'en';
|
$lang = in_array($lang, $acceptLang) ? $lang : 'en';
|
||||||
|
$lang = strtolower($lang);
|
||||||
require_once "lang/{$lang}.php";
|
require_once "lang/{$lang}.php";
|
||||||
|
|
||||||
if(isset($_GET["in"])) {
|
if(isset($_GET["in"])) {
|
||||||
|
|
Loading…
Reference in a new issue