Fix some lang problems

Fix some lang problems & added in admin panel
This commit is contained in:
novgorodschi catalin
2026-06-04 13:54:15 +03:00
parent 33b7261b4b
commit 4eecf575a1
3 changed files with 19 additions and 2 deletions
+17
View File
@@ -143,6 +143,23 @@
<th>Password</th>
<td>•••••••</td>
</tr>
<tr>
<th>Language</th>
<td>
<?php
// map language
$langMap = [
'en' => 'English',
'ro' => 'Romanian',
'zh' => 'Chinese',
'fr' => 'French',
'it' => 'Italian',
];
$userLang = $user['lang'] ?? 'en';
echo htmlspecialchars($langMap[$userLang] ?? strtoupper($userLang));
?>
</td>
</tr>
<tr>
<?php include("playerplusbonus.tpl");?>