整理代码

调整中文tip
This commit is contained in:
MrZ626
2021-12-30 18:35:54 +08:00
parent 05921c2c53
commit 1c5b7f1f9c
6 changed files with 8 additions and 7 deletions

View File

@@ -86,7 +86,7 @@ local function _parseNotice(str)
str[m:sub(1,m:find("=")-1)]=m:sub(m:find("=")+1)
end
end
return str[SETTING.locale]or str[SETTING.locale:find'zh'and'zh'or'en']
return str[SETTING.locale]or SETTING.locale:find'zh'and str.zh or str.en
else
return str
end