index page add top uploader

This commit is contained in:
xiaomlove
2022-04-25 01:22:07 +08:00
parent c3969aeee9
commit a47b33a983
18 changed files with 156 additions and 60 deletions

View File

@@ -607,8 +607,10 @@ function nexus_trans($key, $replace = [], $locale = null)
$getKey = $locale . "." . $key;
$result = arr_get($translations, $getKey);
if (empty($result) && $locale != 'en') {
$getKey = "en.$key";
$getKey = "en." . $key;
$result = arr_get($translations, $getKey);
} else {
do_log("original getKey: $getKey can not get any translations", 'error');
}
if (!empty($replace)) {
$search = array_map(function ($value) {return ":$value";}, array_keys($replace));