This commit is contained in:
KANE LAZENI 2026-05-13 12:29:11 +00:00
parent be017a636e
commit 802e93a5cb

View File

@ -156,11 +156,19 @@
function t($key, $lang, $translations, $params) function t($key, $lang, $translations, $params)
{ {
var_dump(
array(
"params" => $params,
)
);
$text = $translations[$lang][$key] ?? $key; $text = $translations[$lang][$key] ?? $key;
/*
if (!empty($params)) { if (!empty($params)) {
return vsprintf($text, $params); return vsprintf($text, $params);
} }
*/
return $text; return $text;
} }