Enable to search in user local language (#114)

This commit is contained in:
Louis Royer 2020-07-12 17:03:47 +02:00 committed by GitHub
parent a51fe10c92
commit b596a0d10c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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