diff --git a/radio/src/gui/colorlcd/screen_user_interface.cpp b/radio/src/gui/colorlcd/screen_user_interface.cpp index 3cd5ca69d93..9db3c588145 100644 --- a/radio/src/gui/colorlcd/screen_user_interface.cpp +++ b/radio/src/gui/colorlcd/screen_user_interface.cpp @@ -156,7 +156,7 @@ void ScreenUserInterfacePage::build(Window* window) }); line = window->newLine(grid); - new StaticText(line, rect_t{}, "Widget width"); + new StaticText(line, rect_t{}, STR_WIDGET_SIZE); line = window->newLine(grid); auto box = new Window(line, rect_t{}); box->setFlexLayout(LV_FLEX_FLOW_ROW, PAD_TINY); @@ -196,7 +196,7 @@ void ScreenUserInterfacePage::build(Window* window) remaining -= g_model.topbarWidgetWidth[n]; } storageDirty(EE_MODEL); - }, "Widget width"); + }, STR_WIDGET_SIZE); widths[i]->setAvailableHandler([=](int value) { int remaining = MAX_TOPBAR_ZONES; for (int n = 0; n < i; n += 1) diff --git a/radio/src/translations.cpp b/radio/src/translations.cpp index 435446a0ad5..a7abfd650d4 100644 --- a/radio/src/translations.cpp +++ b/radio/src/translations.cpp @@ -1107,6 +1107,7 @@ const char STR_RADIO_INFO_WIDGET[] = TR_RADIO_INFO_WIDGET; const char STR_LOW_BATT_COLOR[] = TR_LOW_BATT_COLOR; const char STR_MID_BATT_COLOR[] = TR_MID_BATT_COLOR; const char STR_HIGH_BATT_COLOR[] = TR_HIGH_BATT_COLOR; +const char STR_WIDGET_SIZE[] = TR_WIDGET_SIZE; #endif const char STR_MIX_SLOW_PREC[] = TR_MIX_SLOW_PREC; diff --git a/radio/src/translations.h b/radio/src/translations.h index 826bbb98077..a37d5fdd7be 100644 --- a/radio/src/translations.h +++ b/radio/src/translations.h @@ -1272,6 +1272,7 @@ extern const char STR_RADIO_INFO_WIDGET[]; extern const char STR_LOW_BATT_COLOR[]; extern const char STR_MID_BATT_COLOR[]; extern const char STR_HIGH_BATT_COLOR[]; +extern const char STR_WIDGET_SIZE[]; #endif extern const char STR_MIX_SLOW_PREC[]; diff --git a/radio/src/translations/cn.h b/radio/src/translations/cn.h index 71fa3b97d30..16b0494a9ad 100644 --- a/radio/src/translations/cn.h +++ b/radio/src/translations/cn.h @@ -1298,3 +1298,5 @@ #define TR_LOW_BATT_COLOR "低电量" #define TR_MID_BATT_COLOR "中电量" #define TR_HIGH_BATT_COLOR "高电量" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/cz.h b/radio/src/translations/cz.h index 053c4a51faa..fb1e414d11e 100644 --- a/radio/src/translations/cz.h +++ b/radio/src/translations/cz.h @@ -1311,3 +1311,5 @@ #define TR_LOW_BATT_COLOR "Vybitá baterie" #define TR_MID_BATT_COLOR "Středně nabitá baterie" #define TR_HIGH_BATT_COLOR "Plně nabitá baterie" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/da.h b/radio/src/translations/da.h index e9bb4b0303e..b208f880882 100644 --- a/radio/src/translations/da.h +++ b/radio/src/translations/da.h @@ -1310,3 +1310,5 @@ #define TR_LOW_BATT_COLOR "Batteri lavt" #define TR_MID_BATT_COLOR "Batteri medio" #define TR_HIGH_BATT_COLOR "Batteri højt" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/de.h b/radio/src/translations/de.h index 87e77fc1395..97ce905e9e7 100644 --- a/radio/src/translations/de.h +++ b/radio/src/translations/de.h @@ -1302,3 +1302,5 @@ #define TR_LOW_BATT_COLOR "Farbe Akku fast leer" #define TR_MID_BATT_COLOR "Farbe Akku mittel" #define TR_HIGH_BATT_COLOR "Farbe Akku voll" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/en.h b/radio/src/translations/en.h index f2e60b336e6..b6badedd070 100644 --- a/radio/src/translations/en.h +++ b/radio/src/translations/en.h @@ -1297,3 +1297,5 @@ #define TR_LOW_BATT_COLOR "Low battery" #define TR_MID_BATT_COLOR "Mid battery" #define TR_HIGH_BATT_COLOR "High battery" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/es.h b/radio/src/translations/es.h index 9445ee79c52..466f16ada81 100644 --- a/radio/src/translations/es.h +++ b/radio/src/translations/es.h @@ -1299,3 +1299,5 @@ #define TR_LOW_BATT_COLOR "Low battery" #define TR_MID_BATT_COLOR "Mid battery" #define TR_HIGH_BATT_COLOR "High battery" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/fi.h b/radio/src/translations/fi.h index baf02669ab4..e62fdc13754 100644 --- a/radio/src/translations/fi.h +++ b/radio/src/translations/fi.h @@ -1315,3 +1315,5 @@ #define TR_LOW_BATT_COLOR "Low battery" #define TR_MID_BATT_COLOR "Mid battery" #define TR_HIGH_BATT_COLOR "High battery" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/fr.h b/radio/src/translations/fr.h index adeb2aa8203..be688b7b68b 100644 --- a/radio/src/translations/fr.h +++ b/radio/src/translations/fr.h @@ -1314,3 +1314,5 @@ #define TR_LOW_BATT_COLOR "Low battery" #define TR_MID_BATT_COLOR "Mid battery" #define TR_HIGH_BATT_COLOR "High battery" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/he.h b/radio/src/translations/he.h index 67a87c9b583..ad5d48c0a90 100644 --- a/radio/src/translations/he.h +++ b/radio/src/translations/he.h @@ -1298,3 +1298,5 @@ #define TR_LOW_BATT_COLOR "מתח סוללה נמוך" #define TR_MID_BATT_COLOR "מתח סוללה בינוני" #define TR_HIGH_BATT_COLOR "מתח סוללה גבוה" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/it.h b/radio/src/translations/it.h index dfab54039e6..1a66b947660 100644 --- a/radio/src/translations/it.h +++ b/radio/src/translations/it.h @@ -1294,3 +1294,5 @@ #define TR_LOW_BATT_COLOR "Batteria scarica" #define TR_MID_BATT_COLOR "Batteria media" #define TR_HIGH_BATT_COLOR "Batteria carica" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/jp.h b/radio/src/translations/jp.h index 3680ebacdc1..a573d2a51b0 100644 --- a/radio/src/translations/jp.h +++ b/radio/src/translations/jp.h @@ -1298,3 +1298,5 @@ #define TR_LOW_BATT_COLOR "バッテリー低" #define TR_MID_BATT_COLOR "バッテリー中" #define TR_HIGH_BATT_COLOR "バッテリー高" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/nl.h b/radio/src/translations/nl.h index 839787b06b0..799f94efea9 100644 --- a/radio/src/translations/nl.h +++ b/radio/src/translations/nl.h @@ -1305,3 +1305,5 @@ #define TR_LOW_BATT_COLOR "Low battery" #define TR_MID_BATT_COLOR "Mid battery" #define TR_HIGH_BATT_COLOR "High battery" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/pl.h b/radio/src/translations/pl.h index dc46d545a84..11052d2c7e1 100644 --- a/radio/src/translations/pl.h +++ b/radio/src/translations/pl.h @@ -1298,3 +1298,5 @@ #define TR_LOW_BATT_COLOR "Rozładowana bateria" #define TR_MID_BATT_COLOR "Średni stan baterii" #define TR_HIGH_BATT_COLOR "Naładowana bateria" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/pt.h b/radio/src/translations/pt.h index 4c10c697f49..3beef397fcf 100644 --- a/radio/src/translations/pt.h +++ b/radio/src/translations/pt.h @@ -1302,3 +1302,5 @@ #define TR_LOW_BATT_COLOR "Bateria Baixa" #define TR_MID_BATT_COLOR "Bateria Média" #define TR_HIGH_BATT_COLOR "Bateria Alta" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/ru.h b/radio/src/translations/ru.h index f256b9600a7..e46ae2bd6ad 100644 --- a/radio/src/translations/ru.h +++ b/radio/src/translations/ru.h @@ -1301,3 +1301,5 @@ #define TR_LOW_BATT_COLOR "Разряженная АКБ" #define TR_MID_BATT_COLOR "Середина АКБ " #define TR_HIGH_BATT_COLOR "Заряженная АКБ" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/se.h b/radio/src/translations/se.h index 42a008bb2a0..d2e85563b59 100644 --- a/radio/src/translations/se.h +++ b/radio/src/translations/se.h @@ -1333,3 +1333,5 @@ #define TR_LOW_BATT_COLOR "Lågt batteri" #define TR_MID_BATT_COLOR "Medium batteri" #define TR_HIGH_BATT_COLOR "Högt batteri" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/tw.h b/radio/src/translations/tw.h index 4b00dd5c53f..5990aff39a7 100644 --- a/radio/src/translations/tw.h +++ b/radio/src/translations/tw.h @@ -1303,3 +1303,5 @@ #define TR_LOW_BATT_COLOR "低電量" #define TR_MID_BATT_COLOR "中電量" #define TR_HIGH_BATT_COLOR "高電量" + +#define TR_WIDGET_SIZE "Widget size" diff --git a/radio/src/translations/ua.h b/radio/src/translations/ua.h index e9600855e47..505dcf42f78 100644 --- a/radio/src/translations/ua.h +++ b/radio/src/translations/ua.h @@ -1300,3 +1300,5 @@ #define TR_LOW_BATT_COLOR "Розряджена батарея" #define TR_MID_BATT_COLOR "Середній заряд батареї" #define TR_HIGH_BATT_COLOR "Заряджена батарея" + +#define TR_WIDGET_SIZE "Widget size"