diff --git a/Admin/Templates/editServerSet.tpl b/Admin/Templates/editServerSet.tpl index 3cd6d9c4..c2233113 100644 --- a/Admin/Templates/editServerSet.tpl +++ b/Admin/Templates/editServerSet.tpl @@ -73,7 +73,7 @@ function refresh(tz) { - + diff --git a/Admin/Templates/playerinfo.tpl b/Admin/Templates/playerinfo.tpl index 90b3d093..f99d16b3 100644 --- a/Admin/Templates/playerinfo.tpl +++ b/Admin/Templates/playerinfo.tpl @@ -143,6 +143,23 @@ Password ••••••• + + Language + + 'English', + 'ro' => 'Romanian', + 'zh' => 'Chinese', + 'fr' => 'French', + 'it' => 'Italian', + ]; + $userLang = $user['lang'] ?? 'en'; + echo htmlspecialchars($langMap[$userLang] ?? strtoupper($userLang)); + ?> + + diff --git a/Templates/Profile/preference.tpl b/Templates/Profile/preference.tpl index 5083abd4..ce1acb43 100644 --- a/Templates/Profile/preference.tpl +++ b/Templates/Profile/preference.tpl @@ -196,7 +196,7 @@ if (isset($_POST['v1']) || isset($_POST['v2']) || isset($_POST['timezone']) || i $lang = LANG; if(isset($_POST['lang'])) { - $allowedLangs = ['en','ro','de','fr','es','it','ru','tr']; + $allowedLangs = ['en','fr','it','ro','zh']; $selectedLang = strtolower(trim($_POST['lang'])); if(in_array($selectedLang, $allowedLangs)) {