a
This commit is contained in:
parent
0ab185549f
commit
e7884ca20c
|
|
@ -41,8 +41,7 @@
|
||||||
'no_request_found' => 'Aucune demande trouvée !',
|
'no_request_found' => 'Aucune demande trouvée !',
|
||||||
|
|
||||||
'token_used' => 'Token déjà utilisé !',
|
'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 !',
|
'verification_done' => 'Vérification déjà effectuée !',
|
||||||
'too_many_attempts' => 'Trop de tentatives !',
|
'too_many_attempts' => 'Trop de tentatives !',
|
||||||
|
|
||||||
|
|
@ -105,8 +104,7 @@
|
||||||
'no_request_found' => 'No requests found!',
|
'no_request_found' => 'No requests found!',
|
||||||
|
|
||||||
'token_used' => 'Token already used!',
|
'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!',
|
'verification_done' => 'Verification already completed!',
|
||||||
'too_many_attempts' => 'Too many attempts!',
|
'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;
|
return $translations[$lang][$key] ?? $key;
|
||||||
|
|
||||||
var_dump(
|
|
||||||
array(
|
|
||||||
"text" => $text,
|
|
||||||
"params" => $params,
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!empty($params)) {
|
|
||||||
return vsprintf($text, $params);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $text;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$tab_code_langue = ["fr_FR", "en_US"];
|
$tab_code_langue = ["fr_FR", "en_US"];
|
||||||
|
|
@ -289,9 +274,8 @@
|
||||||
$message = t(
|
$message = t(
|
||||||
'request_expired',
|
'request_expired',
|
||||||
$lang,
|
$lang,
|
||||||
$translations,
|
$translations
|
||||||
$lang == 'en_US' ? $dateExpirationEng : $dateExpirationFr
|
). ($lang == 'en_US' ? $dateExpirationEng : $dateExpirationFr) . "kanze";
|
||||||
);
|
|
||||||
|
|
||||||
afficherMessage("<strong>$message</strong>", "Erreur");
|
afficherMessage("<strong>$message</strong>", "Erreur");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user