diff options
author | Olivier Humbert <trebmuh@tuxfamily.org> | 2020-08-14 15:17:21 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-08-30 15:59:28 +0200 |
commit | ceead10217d6fa26b746717be9fdbb219f6b7f36 (patch) | |
tree | cd9f347862d197c3ce3affd9794654f6a2abba79 /plugingui/powerwidget.cc | |
parent | db9daf141f1645149b45cc12a067ff61c7da9794 (diff) |
Add more _(...) to strings of the UI.
Diffstat (limited to 'plugingui/powerwidget.cc')
-rw-r--r-- | plugingui/powerwidget.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugingui/powerwidget.cc b/plugingui/powerwidget.cc index 02e7253..0a565e6 100644 --- a/plugingui/powerwidget.cc +++ b/plugingui/powerwidget.cc @@ -36,6 +36,8 @@ #include <hugin.hpp> #include <cmath> +#include <translation.h> + PowerWidget::PowerWidget(GUI::Widget* parent, Settings& settings, SettingsNotifier& settings_notifier) @@ -47,7 +49,7 @@ PowerWidget::PowerWidget(GUI::Widget* parent, CONNECT(&shelf_checkbox, stateChangedNotifier, this, &PowerWidget::chk_shelf); - shelf_label.setText("Shelf"); + shelf_label.setText(_("Shelf")); shelf_label.setAlignment(GUI::TextAlignment::center); shelf_label.resize(59, 16); shelf_checkbox.resize(59, 40); @@ -205,8 +207,8 @@ void PowerWidget::Canvas::repaintEvent(GUI::RepaintEvent *repaintEvent) y0 + height0 - std::round(power_map.getFixed2().out * height0), rad + 1); p.setColour(GUI::Colour(1.0f, 1.0f, 1.0f, 0.2f)); - p.drawText(width() / 2 - (font.textWidth("in") / 2), height() - 8, font, "in"); - p.drawText(8, height() / 2 - (font.textWidth("out") / 2), font, "out", false, true); + p.drawText(width() / 2 - (font.textWidth(_("in")) / 2), height() - 8, font, _("in")); + p.drawText(8, height() / 2 - (font.textWidth(_("out")) / 2), font, _("out"), false, true); } void PowerWidget::Canvas::buttonEvent(GUI::ButtonEvent* buttonEvent) |