mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-22 19:03:43 +01:00
Enable to search in user local language (#114)
This commit is contained in:
parent
a51fe10c92
commit
b596a0d10c
3
init.lua
3
init.lua
@ -1371,7 +1371,8 @@ local function search(data)
|
||||
local item = data.items_raw[i]
|
||||
local def = reg_items[item]
|
||||
local desc = (def and def.description) and lower(def.description) or ""
|
||||
local search_in = fmt("%s %s", item, desc)
|
||||
local loc_desc = lower(get_translation(data.lang_code, def and def.description)) or ""
|
||||
local search_in = fmt("%s %s %s", item, desc, loc_desc)
|
||||
local to_add
|
||||
|
||||
if search_filter then
|
||||
|
Loading…
Reference in New Issue
Block a user