localize "Unknown" option menu string

This commit is contained in:
Alexander Kromm 2022-07-30 16:39:46 +07:00 committed by Christoph Oelckers
parent 4422f9079c
commit 46d9564507

View file

@ -304,7 +304,7 @@ class OptionMenuItemOptionBase : OptionMenuItem
int Selection = GetSelection();
String text = StringTable.Localize(OptionValues.GetText(mValues, Selection));
if (text.Length() == 0) text = "Unknown";
if (text.Length() == 0) text = StringTable.Localize("$TXT_UNKNOWN");
drawValue(indent, y, OptionMenuSettings.mFontColorValue, text, isGrayed());
return indent;
}