Skip to content

Commit

Permalink
Add new string to translation files.
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz committed Jul 1, 2024
1 parent b411c8c commit 8b54bf5
Show file tree
Hide file tree
Showing 21 changed files with 40 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radio/src/gui/colorlcd/screen_user_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions radio/src/translations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
1 change: 1 addition & 0 deletions radio/src/translations.h
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
2 changes: 2 additions & 0 deletions radio/src/translations/cn.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/cz.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/da.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/de.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/en.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/es.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/fi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/fr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/he.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/it.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/jp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/nl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/pl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/pt.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/ru.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/se.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/tw.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions radio/src/translations/ua.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 8b54bf5

Please sign in to comment.