localize custom menu titles in option search results

This commit is contained in:
Alexander 2019-06-12 16:56:51 +07:00 committed by Christoph Oelckers
parent cb8c98827a
commit c161635cca

View file

@ -89,7 +89,7 @@ class os_Menu : OptionMenu
string actionN = item.GetAction();
let textItem = ListMenuItemTextItem(item);
string newPath = textItem
? makePath(path, textItem.mText)
? makePath(path, StringTable.Localize(textItem.mText))
: path;
found |= listOptions(targetDesc, actionN, query, newPath, isAnyTermMatches);