feat: Allow Lua widget translations (#2275)

This commit is contained in:
David PHAM-VAN
2022-09-07 21:18:50 +10:00
committed by GitHub
parent 3b2f07ae85
commit 4ed4f218b4
5 changed files with 67 additions and 4 deletions
+1 -1
View File
@@ -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:
+1
View File
@@ -77,6 +77,7 @@ struct ZoneOption
ZoneOptionValue deflt;
ZoneOptionValue min;
ZoneOptionValue max;
const char * displayName;
};
struct ZoneOptionValueTyped