新语言:机翻

语言模块升级
支持更自由地添加语言(不再使用语言序号)
给getTip设置metatable的代码移出模块
This commit is contained in:
MrZ626
2021-09-20 20:25:17 +08:00
parent 493fcb2f05
commit 7393b3c716
14 changed files with 1053 additions and 107 deletions

View File

@@ -79,7 +79,7 @@ end
--Parse notice
local function _parseNotice(str)
str=STRING.split(str,"///")
return str[SETTING.lang<=3 and 1 or 2]or str[1]
return str[SETTING.locale<=3 and 1 or 2]or str[1]
end
--WS close message