词典支持多语言(等待PR)

This commit is contained in:
MrZ626
2020-10-15 12:47:29 +08:00
parent c2c846fd21
commit ca5f884aa9
3 changed files with 12 additions and 1 deletions

10
document/dict_en.lua Normal file
View File

@@ -0,0 +1,10 @@
local HDsearch="https://harddrop.com/wiki?search="
return{
--Example:
{"DT cannon",--Name
"dt",--Search-keywords, separate with space
"term",--Item type, help/other/game/term/english/name
"Double-Triple Cannon\nsearch HD wiki for more",--text, allow \t and \n
HDsearch.."dt",--URL, if need
},
}

View File

@@ -3167,8 +3167,9 @@ do--help
end
do--dict
function sceneInit.dict()
local location=(setting.lang==3 or setting.lang==4)and"en"or"zh"
sceneTemp={
dict=require("document/dict"),
dict=require("document/dict_"..location),
input="",
result={},