a
This commit is contained in:
parent
0ab185549f
commit
e7884ca20c
|
|
@ -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("<strong>$message</strong>", "Erreur");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user