From 5e9d69156ce2485979e354f755f9f335d2ae0dcb Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Wed, 13 May 2026 12:24:13 +0000 Subject: [PATCH] a --- Contestation/Demandereconnaissancefaciale.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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"];