Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Commit 2beeb87

Browse files
committed
fix _Tr when loading.
1 parent fae7e32 commit 2beeb87

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

iland-core.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -439,15 +439,15 @@ ConfigReader = {
439439
local wrongXuidFounded = false
440440
for ownerXuid,landIds in pairs(JSON.decode(file.readFrom(DATA_PATH..'owners.json'))) do
441441
if data.xuid2name(ownerXuid) == '' then
442-
WARN(_Tr('console.error.readowner.xuid','<a>',ownerXuid))
442+
WARN('Player (xuid: '..ownerXuid..') not found, skipping...')
443443
wrong_landowners[ownerXuid] = landIds
444444
wrongXuidFounded = true
445445
else
446446
land_owners[ownerXuid] = landIds
447447
end
448448
end
449449
if wrongXuidFounded then
450-
INFO(_Tr('console.error.readowner.tipxid'))
450+
INFO('Some players are temporarily not loading because their XUID is not recorded in the database, please have them re-enter the server to make the database recorded.')
451451
end
452452
end
453453
return true
@@ -2560,7 +2560,7 @@ Server.Repo = {
25602560
-- Check Data
25612561
local updata
25622562
if rawInfo.Updates[2]~=nil and rawInfo.Updates[2].NumVer~=Plugin.numver then
2563-
ERROR('console.update.vacancy')
2563+
ERROR(_Tr('console.update.vacancy'))
25642564
return
25652565
end
25662566
if rawInfo.FILE_Version==Server.version then

iland/lang/en_US.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"VERSION": 261,
2+
"VERSION": 262,
33

44
"gui.land.title": "Land v<a>",
55
"gui.oplandmgr.trsland.title": "Forced transfer of land",
@@ -381,8 +381,6 @@
381381
"console.languages.update.single": "Starting updating language <a> ...",
382382

383383
"console.error.money.protocol": "Unknown economic component '<a>' is being used.",
384-
"console.error.money.scorenull": "The scoreboard object could not be accessed, the corresponding economic scoreboard may not exist. Please use /land mgr to change to the correct scoreboard or try restarting the server.",
385-
"console.error.readowner.xuid": "Unable to identify player (xuid = <a>) because this XUID was not found in the database, skip reading...",
386-
"console.error.readowner.tipxid": "The above warning does not affect the operation of the plugin for the time being. Please let the player with the corresponding XUID re-enter the server to make the database record."
384+
"console.error.money.scorenull": "The scoreboard object could not be accessed, the corresponding economic scoreboard may not exist. Please use /land mgr to change to the correct scoreboard or try restarting the server."
387385

388386
}

iland/lang/zh_CN.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"VERSION": 261,
2+
"VERSION": 262,
33
"#1": "zh_CN 标准汉语翻译贡献者:RedbeanW",
44

55
"gui.land.title": "Land v<a>",
@@ -382,8 +382,6 @@
382382
"console.languages.update.single": "正在开始升级语言 <a> ...",
383383

384384
"console.error.money.protocol": "正在使用未知的经济组件 '<a>'。",
385-
"console.error.money.scorenull": "无法访问计分板对象,可能对应的经济计分板不存在。请使用/land mgr更改为正确计分板或尝试重启服务器。",
386-
"console.error.readowner.xuid": "无法识别玩家(xuid = <a>),因为这个XUID在数据库中找不到,跳过读取...",
387-
"console.error.readowner.tipxid": "以上警告暂不影响插件运行,请让对应XUID的玩家重新进入服务器以使数据库记录。"
385+
"console.error.money.scorenull": "无法访问计分板对象,可能对应的经济计分板不存在。请使用/land mgr更改为正确计分板或尝试重启服务器。"
388386

389387
}

iland/lang/zh_TW.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"VERSION": 261,
2+
"VERSION": 262,
33

44
"gui.land.title": "Land v<a>",
55
"gui.oplandmgr.trsland.title": "強製過戶領地",
@@ -381,8 +381,6 @@
381381
"console.languages.update.single": "正在開始升級語言 <a> ...",
382382

383383
"console.error.money.protocol": "正在使用未知的經濟組件 '<a>'。",
384-
"console.error.money.scorenull": "無法訪問計分闆對象,可能對應的經濟計分板不存在。請使用/land mgr更改為正確計分板或嘗試重啟服務器。",
385-
"console.error.readowner.xuid": "無法識別玩家(xuid = <a>),因為這個XUID在數據庫中找不到,跳過讀取...",
386-
"console.error.readowner.tipxid": "以上警告暫不影響插件運行,請讓對應XUID的玩家重新進入服務器以使數據庫記錄。"
384+
"console.error.money.scorenull": "無法訪問計分闆對象,可能對應的經濟計分板不存在。請使用/land mgr更改為正確計分板或嘗試重啟服務器。"
387385

388386
}

0 commit comments

Comments
 (0)