mirror of
https://github.com/rottenwheel/moner.ooo.git
synced 2024-11-10 05:03:44 +01: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
@ -68,8 +68,13 @@ $MXN = $api->mxn;
|
||||
// Lädt die Sprachdatei, nach der Sprache die im Browser eingestellt wurde
|
||||
$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 = strtolower($lang);
|
||||
require_once "lang/{$lang}.php";
|
||||
|
||||
if(isset($_GET["in"])) {
|
||||
|
Loading…
Reference in New Issue
Block a user