feat: CPP Widget names also translatable (#2454)
* feat: CPP Widget names also translatable * chore: Add cn, cz, de, it, se, tw translations
This commit is contained in:
@@ -82,4 +82,5 @@ const ZoneOption GaugeWidget::options[] = {
|
||||
{ nullptr, ZoneOption::Bool }
|
||||
};
|
||||
|
||||
BaseWidgetFactory<GaugeWidget> gaugeWidget("Gauge", GaugeWidget::options);
|
||||
BaseWidgetFactory<GaugeWidget> gaugeWidget("Gauge", GaugeWidget::options,
|
||||
STR_WIDGET_GAUGE);
|
||||
|
||||
@@ -134,4 +134,5 @@ const ZoneOption ModelBitmapWidget::options[] = {
|
||||
{STR_USE_THEME_COLOR, ZoneOption::Bool, OPTION_VALUE_BOOL(true)},
|
||||
{nullptr, ZoneOption::Bool}};
|
||||
|
||||
BaseWidgetFactory<ModelBitmapWidget> modelBitmapWidget("ModelBmp", ModelBitmapWidget::options, "Models");
|
||||
BaseWidgetFactory<ModelBitmapWidget> modelBitmapWidget(
|
||||
"ModelBmp", ModelBitmapWidget::options, STR_WIDGET_MODELBMP);
|
||||
|
||||
@@ -160,4 +160,5 @@ const ZoneOption OutputsWidget::options[] = {
|
||||
{nullptr, ZoneOption::Bool}};
|
||||
|
||||
BaseWidgetFactory<OutputsWidget> outputsWidget("Outputs",
|
||||
OutputsWidget::options);
|
||||
OutputsWidget::options,
|
||||
STR_WIDGET_OUTPUTS);
|
||||
|
||||
@@ -60,4 +60,5 @@ const ZoneOption TextWidget::options[] = {
|
||||
{ nullptr, ZoneOption::Bool }
|
||||
};
|
||||
|
||||
BaseWidgetFactory<TextWidget> textWidget("Text", TextWidget::options);
|
||||
BaseWidgetFactory<TextWidget> textWidget("Text", TextWidget::options,
|
||||
STR_WIDGET_TEXT);
|
||||
|
||||
@@ -167,4 +167,5 @@ const ZoneOption TimerWidget::options[] = {
|
||||
{STR_TIMER_SOURCE, ZoneOption::Timer, OPTION_VALUE_UNSIGNED(0)},
|
||||
{nullptr, ZoneOption::Bool}};
|
||||
|
||||
BaseWidgetFactory<TimerWidget> timerWidget("Timer", TimerWidget::options);
|
||||
BaseWidgetFactory<TimerWidget> timerWidget("Timer", TimerWidget::options,
|
||||
STR_WIDGET_TIMER);
|
||||
|
||||
@@ -150,4 +150,5 @@ const ZoneOption ValueWidget::options[] = {
|
||||
{ nullptr, ZoneOption::Bool }
|
||||
};
|
||||
|
||||
BaseWidgetFactory<ValueWidget> ValueWidget("Value", ValueWidget::options);
|
||||
BaseWidgetFactory<ValueWidget> ValueWidget("Value", ValueWidget::options,
|
||||
STR_WIDGET_VALUE);
|
||||
|
||||
@@ -802,6 +802,12 @@ const char STR_COLOR[] = TR_COLOR;
|
||||
const char STR_MAIN_VIEW_X[] = TR_MAIN_VIEW_X;
|
||||
const char STR_PANEL1_BACKGROUND[] = TR_PANEL1_BACKGROUND;
|
||||
const char STR_PANEL2_BACKGROUND[] = TR_PANEL2_BACKGROUND;
|
||||
const char STR_WIDGET_GAUGE[] = TR_WIDGET_GAUGE;
|
||||
const char STR_WIDGET_MODELBMP[] = TR_WIDGET_MODELBMP;
|
||||
const char STR_WIDGET_OUTPUTS[] = TR_WIDGET_OUTPUTS;
|
||||
const char STR_WIDGET_TEXT[] = TR_WIDGET_TEXT;
|
||||
const char STR_WIDGET_TIMER[] = TR_WIDGET_TIMER;
|
||||
const char STR_WIDGET_VALUE[] = TR_WIDGET_VALUE;
|
||||
const char STR_MODULES_RX_VERSION[] = TR_MODULES_RX_VERSION;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -709,6 +709,12 @@ extern const char STR_COLOR[];
|
||||
extern const char STR_MAIN_VIEW_X[];
|
||||
extern const char STR_PANEL1_BACKGROUND[];
|
||||
extern const char STR_PANEL2_BACKGROUND[];
|
||||
extern const char STR_WIDGET_GAUGE[];
|
||||
extern const char STR_WIDGET_MODELBMP[];
|
||||
extern const char STR_WIDGET_OUTPUTS[];
|
||||
extern const char STR_WIDGET_TEXT[];
|
||||
extern const char STR_WIDGET_TIMER[];
|
||||
extern const char STR_WIDGET_VALUE[];
|
||||
extern const char STR_MODULES_RX_VERSION[];
|
||||
#endif
|
||||
extern const char STR_EXECUTE_FILE[];
|
||||
|
||||
@@ -621,7 +621,7 @@
|
||||
#define TR_SELECT_MODE "选择模式"
|
||||
#define TR_CREATE_MODEL "创建模型"
|
||||
#define TR_FAVORITE_LABEL "Favorites"
|
||||
#define TR_MODELS_MOVED "Unused models moved to"
|
||||
#define TR_MODELS_MOVED "未使用模型移至"
|
||||
#define TR_NEW_MODEL "New Model"
|
||||
#define TR_INVALID_MODEL "Invalid Model"
|
||||
#define TR_EDIT_LABELS "Edit Labels"
|
||||
@@ -1046,6 +1046,12 @@
|
||||
#define TR_MAIN_VIEW_X "Main view X"
|
||||
#define TR_PANEL1_BACKGROUND "面板1背景"
|
||||
#define TR_PANEL2_BACKGROUND "面板2背景"
|
||||
#define TR_WIDGET_GAUGE "行程"
|
||||
#define TR_WIDGET_MODELBMP "模型信息"
|
||||
#define TR_WIDGET_OUTPUTS "输出"
|
||||
#define TR_WIDGET_TEXT "文本"
|
||||
#define TR_WIDGET_TIMER "计时器"
|
||||
#define TR_WIDGET_VALUE "数值"
|
||||
|
||||
// About screen
|
||||
#define TR_ABOUTUS TR(" 关于 ", "关于")
|
||||
|
||||
@@ -1067,6 +1067,12 @@
|
||||
#define TR_MAIN_VIEW_X "Hlavní pohled X"
|
||||
#define TR_PANEL1_BACKGROUND "Panel1 pozadí"
|
||||
#define TR_PANEL2_BACKGROUND "Panel2 pozadí"
|
||||
#define TR_WIDGET_GAUGE "Měřidlo"
|
||||
#define TR_WIDGET_MODELBMP "Model info"
|
||||
#define TR_WIDGET_OUTPUTS "Výstupy"
|
||||
#define TR_WIDGET_TEXT "Text"
|
||||
#define TR_WIDGET_TIMER "Časovač"
|
||||
#define TR_WIDGET_VALUE "Hodnota"
|
||||
|
||||
// Taranis About screen
|
||||
#define TR_ABOUTUS "O nás"
|
||||
|
||||
@@ -1046,6 +1046,12 @@
|
||||
#define TR_MAIN_VIEW_X "Hoved visning X"
|
||||
#define TR_PANEL1_BACKGROUND "Panel1 baggrund"
|
||||
#define TR_PANEL2_BACKGROUND "Panel2 baggrund"
|
||||
#define TR_WIDGET_GAUGE "Gauge"
|
||||
#define TR_WIDGET_MODELBMP "Models"
|
||||
#define TR_WIDGET_OUTPUTS "Outputs"
|
||||
#define TR_WIDGET_TEXT "Text"
|
||||
#define TR_WIDGET_TIMER "Timer"
|
||||
#define TR_WIDGET_VALUE "Value"
|
||||
|
||||
// About screen
|
||||
#define TR_ABOUTUS TR(" OM ", "OM")
|
||||
|
||||
@@ -1020,6 +1020,12 @@
|
||||
#define TR_MAIN_VIEW_X "Hauptansicht X"
|
||||
#define TR_PANEL1_BACKGROUND "Panel1 Hintergrund"
|
||||
#define TR_PANEL2_BACKGROUND "Panel2 Hintergrund"
|
||||
#define TR_WIDGET_GAUGE "Pegel"
|
||||
#define TR_WIDGET_MODELBMP "Modellinfo"
|
||||
#define TR_WIDGET_OUTPUTS "Ausgänge"
|
||||
#define TR_WIDGET_TEXT "Text"
|
||||
#define TR_WIDGET_TIMER "Timer"
|
||||
#define TR_WIDGET_VALUE "Wert"
|
||||
|
||||
// Taranis Info Zeile Anzeigen
|
||||
#define TR_LIMITS_HEADERS_NAME "Name"
|
||||
|
||||
@@ -1046,6 +1046,12 @@
|
||||
#define TR_MAIN_VIEW_X "Main view X"
|
||||
#define TR_PANEL1_BACKGROUND "Panel1 background"
|
||||
#define TR_PANEL2_BACKGROUND "Panel2 background"
|
||||
#define TR_WIDGET_GAUGE "Gauge"
|
||||
#define TR_WIDGET_MODELBMP "Model info"
|
||||
#define TR_WIDGET_OUTPUTS "Outputs"
|
||||
#define TR_WIDGET_TEXT "Text"
|
||||
#define TR_WIDGET_TIMER "Timer"
|
||||
#define TR_WIDGET_VALUE "Value"
|
||||
|
||||
// About screen
|
||||
#define TR_ABOUTUS TR(" ABOUT ", "ABOUT")
|
||||
|
||||
@@ -1053,6 +1053,12 @@
|
||||
#define TR_MAIN_VIEW_X "Vista principal X"
|
||||
#define TR_PANEL1_BACKGROUND "Fondo panel1"
|
||||
#define TR_PANEL2_BACKGROUND "Fondo panel2"
|
||||
#define TR_WIDGET_GAUGE "Gauge"
|
||||
#define TR_WIDGET_MODELBMP "Models"
|
||||
#define TR_WIDGET_OUTPUTS "Outputs"
|
||||
#define TR_WIDGET_TEXT "Text"
|
||||
#define TR_WIDGET_TIMER "Timer"
|
||||
#define TR_WIDGET_VALUE "Value"
|
||||
|
||||
// Taranis About screen
|
||||
#define TR_ABOUTUS "Nosotros"
|
||||
|
||||
@@ -1077,6 +1077,12 @@
|
||||
#define TR_MAIN_VIEW_X "Main view X"
|
||||
#define TR_PANEL1_BACKGROUND "Panel1 background"
|
||||
#define TR_PANEL2_BACKGROUND "Panel2 background"
|
||||
#define TR_WIDGET_GAUGE "Gauge"
|
||||
#define TR_WIDGET_MODELBMP "Models"
|
||||
#define TR_WIDGET_OUTPUTS "Outputs"
|
||||
#define TR_WIDGET_TEXT "Text"
|
||||
#define TR_WIDGET_TIMER "Timer"
|
||||
#define TR_WIDGET_VALUE "Value"
|
||||
|
||||
// About screen
|
||||
#define TR_ABOUTUS TR(" ABOUT ", "ABOUT")
|
||||
|
||||
@@ -1077,6 +1077,12 @@
|
||||
#define TR_MAIN_VIEW_X "Main view X"
|
||||
#define TR_PANEL1_BACKGROUND "Panel1 background"
|
||||
#define TR_PANEL2_BACKGROUND "Panel2 background"
|
||||
#define TR_WIDGET_GAUGE "Gauge"
|
||||
#define TR_WIDGET_MODELBMP "Models"
|
||||
#define TR_WIDGET_OUTPUTS "Outputs"
|
||||
#define TR_WIDGET_TEXT "Text"
|
||||
#define TR_WIDGET_TIMER "Timer"
|
||||
#define TR_WIDGET_VALUE "Value"
|
||||
|
||||
// Taranis About screen
|
||||
#define TR_ABOUTUS TR(" A PROPOS ", "A PROPOS")
|
||||
|
||||
@@ -1051,6 +1051,12 @@
|
||||
#define TR_MAIN_VIEW_X "Vista principale X"
|
||||
#define TR_PANEL1_BACKGROUND "Sfondo Panello 1"
|
||||
#define TR_PANEL2_BACKGROUND "Sfondo Panello 2"
|
||||
#define TR_WIDGET_GAUGE "Indicatore"
|
||||
#define TR_WIDGET_MODELBMP "Immagine e nome modello"
|
||||
#define TR_WIDGET_OUTPUTS "Uscite"
|
||||
#define TR_WIDGET_TEXT "Testo"
|
||||
#define TR_WIDGET_TIMER "Timer"
|
||||
#define TR_WIDGET_VALUE "Valore"
|
||||
|
||||
// About screen
|
||||
#define TR_ABOUTUS TR(" INFO ", "INFO SU")
|
||||
|
||||
@@ -1061,6 +1061,12 @@
|
||||
#define TR_MAIN_VIEW_X "Main view X"
|
||||
#define TR_PANEL1_BACKGROUND "Panel1 background"
|
||||
#define TR_PANEL2_BACKGROUND "Panel2 background"
|
||||
#define TR_WIDGET_GAUGE "Gauge"
|
||||
#define TR_WIDGET_MODELBMP "Models"
|
||||
#define TR_WIDGET_OUTPUTS "Outputs"
|
||||
#define TR_WIDGET_TEXT "Text"
|
||||
#define TR_WIDGET_TIMER "Timer"
|
||||
#define TR_WIDGET_VALUE "Value"
|
||||
|
||||
// About screen
|
||||
#define TR_ABOUTUS TR(" ABOUT ", "ABOUT")
|
||||
|
||||
@@ -1046,6 +1046,12 @@
|
||||
#define TR_MAIN_VIEW_X "Main view X"
|
||||
#define TR_PANEL1_BACKGROUND "Panel1 background"
|
||||
#define TR_PANEL2_BACKGROUND "Panel2 background"
|
||||
#define TR_WIDGET_GAUGE "Gauge"
|
||||
#define TR_WIDGET_MODELBMP "Models"
|
||||
#define TR_WIDGET_OUTPUTS "Outputs"
|
||||
#define TR_WIDGET_TEXT "Text"
|
||||
#define TR_WIDGET_TIMER "Timer"
|
||||
#define TR_WIDGET_VALUE "Value"
|
||||
|
||||
// About screen
|
||||
#define TR_ABOUTUS TR(" O ", " O ")
|
||||
|
||||
@@ -1052,6 +1052,12 @@
|
||||
#define TR_MAIN_VIEW_X "Main view X"
|
||||
#define TR_PANEL1_BACKGROUND "Panel1 background"
|
||||
#define TR_PANEL2_BACKGROUND "Panel2 background"
|
||||
#define TR_WIDGET_GAUGE "Gauge"
|
||||
#define TR_WIDGET_MODELBMP "Models"
|
||||
#define TR_WIDGET_OUTPUTS "Outputs"
|
||||
#define TR_WIDGET_TEXT "Text"
|
||||
#define TR_WIDGET_TIMER "Timer"
|
||||
#define TR_WIDGET_VALUE "Value"
|
||||
|
||||
// Taranis About screen
|
||||
#define TR_ABOUTUS "ABOUT US"
|
||||
|
||||
@@ -621,7 +621,7 @@
|
||||
#define TR_SELECT_MODE "選擇模式"
|
||||
#define TR_CREATE_MODEL "創建模型"
|
||||
#define TR_FAVORITE_LABEL "Favorites"
|
||||
#define TR_MODELS_MOVED "Unused models moved to"
|
||||
#define TR_MODELS_MOVED "未使用模型移至"
|
||||
#define TR_NEW_MODEL "New Model"
|
||||
#define TR_INVALID_MODEL "Invalid Model"
|
||||
#define TR_EDIT_LABELS "Edit Labels"
|
||||
@@ -1046,6 +1046,12 @@
|
||||
#define TR_MAIN_VIEW_X "Main view X"
|
||||
#define TR_PANEL1_BACKGROUND "面板1背景"
|
||||
#define TR_PANEL2_BACKGROUND "面板2背景"
|
||||
#define TR_WIDGET_GAUGE "行程"
|
||||
#define TR_WIDGET_MODELBMP "模型信息"
|
||||
#define TR_WIDGET_OUTPUTS "輸出"
|
||||
#define TR_WIDGET_TEXT "文本"
|
||||
#define TR_WIDGET_TIMER "計時器"
|
||||
#define TR_WIDGET_VALUE "數值"
|
||||
|
||||
// About screen
|
||||
#define TR_ABOUTUS TR(" 關於 ", "關於")
|
||||
|
||||
Reference in New Issue
Block a user