Enable to search in user local language

This commit is contained in:
Louis Royer 2020-07-12 16:25:27 +02:00
parent 24115a0d84
commit 2fddd96d61
1 changed files with 2 additions and 1 deletions

View File

@ -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