a
This commit is contained in:
parent
8964930d1f
commit
0ab185549f
|
|
@ -156,19 +156,18 @@
|
||||||
|
|
||||||
function t($key, $lang, $translations, $params)
|
function t($key, $lang, $translations, $params)
|
||||||
{
|
{
|
||||||
|
$text = $translations[$lang][$key] ?? $key;
|
||||||
|
|
||||||
var_dump(
|
var_dump(
|
||||||
array(
|
array(
|
||||||
|
"text" => $text,
|
||||||
"params" => $params,
|
"params" => $params,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$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