Skip to content

Commit

Permalink
Added search with built-in minetest translations in /list command
Browse files Browse the repository at this point in the history
  • Loading branch information
ssdaniel24 committed Jul 24, 2022
1 parent 5de6e4f commit 9882d89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mods/lord/lord_info/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ local function list_form(name, select_id, find)
(
(find == "") or
(string.find(string.lower(i), string.lower(find))) or
(string.find(string.lower(j.description), string.lower(find)))
(string.find(string.lower(j.description), string.lower(find))) or
(string.find(string.lower(minetest.get_translated_string("ru", j.description)), string.lower(find)))
)
then
table.insert(list, i)
Expand Down

0 comments on commit 9882d89

Please sign in to comment.