This commit is contained in:
KANE LAZENI 2026-05-13 12:02:58 +00:00
parent df42abdc16
commit 2f19745870

View File

@ -14,12 +14,15 @@
$codeLangue = base64_decode($lg);
$lang = ($codeLangue === 'en_US') ? 'en_US' : 'fr_FR';
/*
var_dump(
array(
"lg" => $lg,
"lang" => $lang,
)
);
*/
$translations = [
'fr_FR' => [
@ -149,9 +152,14 @@
]
];
function t($key, $lang, $translations)
{
return $translations[$lang][$key] ?? $key;
}
$tab_code_langue = ["fr_FR", "en_US"];
if (!in_array($codeLangue, $tab_code_langue)) {
afficherMessage("Langue inconnue!", "Erreur");
afficherMessage("Langue inconnue!/Unknown language!", "Erreur");
}
if (!isset($_GET['codeEntite'])) {