词典支持多语言(等待PR)
This commit is contained in:
10
document/dict_en.lua
Normal file
10
document/dict_en.lua
Normal 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
|
||||
},
|
||||
}
|
||||
@@ -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={},
|
||||
|
||||
Reference in New Issue
Block a user