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);
|
||||
|
||||
Reference in New Issue
Block a user