diff --git a/Contestation/Demandereconnaissancefaciale.php b/Contestation/Demandereconnaissancefaciale.php index eee77dc..ffe130b 100755 --- a/Contestation/Demandereconnaissancefaciale.php +++ b/Contestation/Demandereconnaissancefaciale.php @@ -154,9 +154,15 @@ ] ]; - function t($key, $lang, $translations) + function t($key, $lang, $translations, $params) { - return $translations[$lang][$key] ?? $key; + $text = $translations[$lang][$key] ?? $key; + + if (!empty($params)) { + return vsprintf($text, $params); + } + + return $text; } $tab_code_langue = ["fr_FR", "en_US"];