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:
Luke 2024-05-11 21:54:12 +02:00 committed by GitHub
parent 83edcdfe2c
commit b3564695e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"])) {