From e7884ca20c07d977742bdccb790cab331f92caec Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Wed, 13 May 2026 12:44:41 +0000 Subject: [PATCH] a --- Contestation/Demandereconnaissancefaciale.php | 28 ++++--------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/Contestation/Demandereconnaissancefaciale.php b/Contestation/Demandereconnaissancefaciale.php index 47054d2..e25c0b6 100755 --- a/Contestation/Demandereconnaissancefaciale.php +++ b/Contestation/Demandereconnaissancefaciale.php @@ -41,8 +41,7 @@ 'no_request_found' => 'Aucune demande trouvée !', 'token_used' => 'Token déjà utilisé !', - 'request_expired' => 'Demande expirée depuis %s', - // 'request_expired' => 'Demande expirée depuis ', + 'request_expired' => 'Demande expirée depuis ', 'verification_done' => 'Vérification déjà effectuée !', 'too_many_attempts' => 'Trop de tentatives !', @@ -105,8 +104,7 @@ 'no_request_found' => 'No requests found!', 'token_used' => 'Token already used!', - 'request_expired' => 'Request expired since %s', - // 'request_expired' => 'Request expired since ', + 'request_expired' => 'Request expired since ', 'verification_done' => 'Verification already completed!', 'too_many_attempts' => 'Too many attempts!', @@ -154,22 +152,9 @@ ] ]; - function t($key, $lang, $translations, $params) + function t($key, $lang, $translations) { - $text = $translations[$lang][$key] ?? $key; - - var_dump( - array( - "text" => $text, - "params" => $params, - ) - ); - - if (!empty($params)) { - return vsprintf($text, $params); - } - - return $text; + return $translations[$lang][$key] ?? $key; } $tab_code_langue = ["fr_FR", "en_US"]; @@ -289,9 +274,8 @@ $message = t( 'request_expired', $lang, - $translations, - $lang == 'en_US' ? $dateExpirationEng : $dateExpirationFr - ); + $translations + ). ($lang == 'en_US' ? $dateExpirationEng : $dateExpirationFr) . "kanze"; afficherMessage("$message", "Erreur"); }