From b596a0d10cf5dea06ec93e5a3e62518826932042 Mon Sep 17 00:00:00 2001 From: Louis Royer <55180044+louisroyer@users.noreply.github.com> Date: Sun, 12 Jul 2020 17:03:47 +0200 Subject: [PATCH] Enable to search in user local language (#114) --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 6e6bc3e..a1297a9 100644 --- a/init.lua +++ b/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