From cbd97df68fc6e67c7b9d3cfef14ae5866f737321 Mon Sep 17 00:00:00 2001 From: Olivier Humbert Date: Tue, 18 Aug 2020 17:21:46 +0200 Subject: Add even more _(...) to strings of the UI. --- plugingui/humanizerframecontent.h | 8 +++++--- plugingui/sampleselectionframecontent.h | 8 +++++--- plugingui/timingframecontent.h | 8 +++++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/plugingui/humanizerframecontent.h b/plugingui/humanizerframecontent.h index c8a49e7..10ae0f3 100644 --- a/plugingui/humanizerframecontent.h +++ b/plugingui/humanizerframecontent.h @@ -31,6 +31,8 @@ #include "layout.h" #include "widget.h" +#include + struct Settings; class SettingsNotifier; @@ -56,9 +58,9 @@ private: GridLayout layout{this, 3, 1}; - LabeledControl attack{this, "pAttack"}; // drummer strength - LabeledControl falloff{this, "pRelease"}; // regain - LabeledControl stddev{this, "pStdDev"}; + LabeledControl attack{this, _("pAttack")}; // drummer strength + LabeledControl falloff{this, _("pRelease")}; // regain + LabeledControl stddev{this, _("pStdDev")}; Knob attack_knob{&attack}; Knob falloff_knob{&falloff}; diff --git a/plugingui/sampleselectionframecontent.h b/plugingui/sampleselectionframecontent.h index d94b3fc..f3636da 100644 --- a/plugingui/sampleselectionframecontent.h +++ b/plugingui/sampleselectionframecontent.h @@ -31,6 +31,8 @@ #include "layout.h" #include "widget.h" +#include + struct Settings; class SettingsNotifier; @@ -56,9 +58,9 @@ private: GridLayout layout{this, 3, 1}; - LabeledControl f_close{this, "pClose"}; - LabeledControl f_diverse{this, "pDiverse"}; - LabeledControl f_random{this, "pRandom"}; + LabeledControl f_close{this, _("pClose")}; + LabeledControl f_diverse{this, _("pDiverse")}; + LabeledControl f_random{this, _("pRandom")}; Knob f_close_knob{&f_close}; Knob f_diverse_knob{&f_diverse}; diff --git a/plugingui/timingframecontent.h b/plugingui/timingframecontent.h index c0f82df..3dde8c1 100644 --- a/plugingui/timingframecontent.h +++ b/plugingui/timingframecontent.h @@ -37,6 +37,8 @@ #include #include +#include + class SettingsNotifier; namespace GUI @@ -68,9 +70,9 @@ private: GridLayout layout{this, 3, 1}; - LabeledControl tightness{this, "pTightness"}; - LabeledControl regain{this, "pTimingRegain"}; - LabeledControl laidback{this, "pLaidback"}; + LabeledControl tightness{this, _("pTightness")}; + LabeledControl regain{this, _("pTimingRegain")}; + LabeledControl laidback{this, _("pLaidback")}; Knob tightness_knob{&tightness}; Knob regain_knob{®ain}; -- cgit v1.2.3