torrent operation log type add edit&delete

This commit is contained in:
xiaomlove
2022-12-08 03:48:20 +08:00
parent 6c58a38166
commit 7386806bd6
22 changed files with 386 additions and 71 deletions

View File

@@ -56,7 +56,12 @@ class NexusModel extends Model
$result = $dataSource;
$keyValue = [];
foreach ($result as $key => &$info) {
$text = $textTransPrefix ? nexus_trans("$textTransPrefix.$key") : $info['text'];
if (str_contains($textTransPrefix, '%s')) {
$transKey = sprintf($textTransPrefix, $key);
} else {
$transKey = "$textTransPrefix.$key";
}
$text = $textTransPrefix ? nexus_trans($transKey) : $info['text'];
$info['text'] = $text;
$keyValue[$key] = $info[$valueField];
}