feat: Allow Lua widget translations (#2275)
This commit is contained in:
@@ -57,7 +57,7 @@ WidgetSettings::WidgetSettings(Window* parent, Widget* widget) :
|
||||
auto line = form->newLine(&grid);
|
||||
|
||||
auto option = *optPtr;
|
||||
new StaticText(line, rect_t{}, option.name, 0, COLOR_THEME_PRIMARY1);
|
||||
new StaticText(line, rect_t{}, option.displayName ? option.displayName : option.name, 0, COLOR_THEME_PRIMARY1);
|
||||
|
||||
switch (option.type) {
|
||||
case ZoneOption::Integer:
|
||||
|
||||
@@ -77,6 +77,7 @@ struct ZoneOption
|
||||
ZoneOptionValue deflt;
|
||||
ZoneOptionValue min;
|
||||
ZoneOptionValue max;
|
||||
const char * displayName;
|
||||
};
|
||||
|
||||
struct ZoneOptionValueTyped
|
||||
|
||||
Reference in New Issue
Block a user