a
This commit is contained in:
parent
be017a636e
commit
802e93a5cb
|
|
@ -156,12 +156,20 @@
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user