fix: Translate widget "full screen" menu option (#2511)

* Added STR_WIDGET_FULLSCREEN

* Added STR_WIDGET_FULLSCREEN

* Added STR_WIDGET_FULLSCREEN

* Added STR_WIDGET_FULLSCREEN and corrected TR_WIDGET_SETTINGS to STR_WIDGET_SETTINGS

* Added TR_WIDGET_FULLSCREEN

* Add files via upload
This commit is contained in:
ulfhedlund
2022-10-11 10:37:21 +10:00
committed by GitHub
parent bece340186
commit 50c2e5bc77
17 changed files with 18 additions and 3 deletions
+1 -1
View File
@@ -45,5 +45,5 @@ class Layout1x1 : public Layout
rect_t getZone(unsigned int index) const override { return getMainZone(); }
};
BaseLayoutFactory<Layout1x1> layout1x1("Layout1x1", "Fullscreen",
BaseLayoutFactory<Layout1x1> layout1x1("Layout1x1", STR_WIDGET_FULLSCREEN,
LBM_LAYOUT_1x1, OPTIONS_LAYOUT_1x1);
+2 -2
View File
@@ -59,10 +59,10 @@ void Widget::openMenu()
{
Menu* menu = new Menu(this);
if (fsAllowed) {
menu->addLine("Full screen", [&]() { setFullscreen(true); });
menu->addLine(STR_WIDGET_FULLSCREEN, [&]() { setFullscreen(true); });
}
if (getOptions() && getOptions()->name) {
menu->addLine(TR_WIDGET_SETTINGS,
menu->addLine(STR_WIDGET_SETTINGS,
[=]() { new WidgetSettings(this, this); });
}
}