a
This commit is contained in:
parent
02053dd7d1
commit
5e9d69156c
|
|
@ -154,9 +154,15 @@
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
function t($key, $lang, $translations)
|
function t($key, $lang, $translations, $params)
|
||||||
{
|
{
|
||||||
return $translations[$lang][$key] ?? $key;
|
$text = $translations[$lang][$key] ?? $key;
|
||||||
|
|
||||||
|
if (!empty($params)) {
|
||||||
|
return vsprintf($text, $params);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
$tab_code_langue = ["fr_FR", "en_US"];
|
$tab_code_langue = ["fr_FR", "en_US"];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user