summaryrefslogtreecommitdiff
path: root/plugingui/diskstreamingframecontent.cc
diff options
context:
space:
mode:
authorOlivier Humbert <trebmuh@tuxfamily.org>2020-08-13 17:52:34 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-08-30 15:59:27 +0200
commitdb9daf141f1645149b45cc12a067ff61c7da9794 (patch)
treec90088af52efd2549a5025db1e6a8753d749f7ba /plugingui/diskstreamingframecontent.cc
parente30988f7b85e1ba31cee325fe6a49bcfa78cfc4a (diff)
Add _(...) to most strings of the UI.
Diffstat (limited to 'plugingui/diskstreamingframecontent.cc')
-rw-r--r--plugingui/diskstreamingframecontent.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugingui/diskstreamingframecontent.cc b/plugingui/diskstreamingframecontent.cc
index 008aee3..97937df 100644
--- a/plugingui/diskstreamingframecontent.cc
+++ b/plugingui/diskstreamingframecontent.cc
@@ -30,6 +30,8 @@
#include <limits>
+#include <translation.h>
+
namespace GUI
{
@@ -41,13 +43,13 @@ DiskstreamingframeContent::DiskstreamingframeContent(Widget* parent,
, settings(settings)
, settings_notifier(settings_notifier)
{
- label_text.setText("Cache limit (max memory usage):");
+ label_text.setText(_("Cache limit (max memory usage):"));
label_text.setAlignment(TextAlignment::center);
- button.setText("Apply");
+ button.setText(_("Apply"));
button.setEnabled(false);
- label_value.setText("0 MB");
+ label_value.setText(_("0 MB"));
label_value.setAlignment(TextAlignment::center);
CONNECT(this, settings_notifier.disk_cache_upper_limit,
@@ -102,7 +104,7 @@ void DiskstreamingframeContent::limitSettingsValueChanged(std::size_t value)
slider.setColour(Slider::Colour::Blue);
}
else {
- label_value.setText("Unlimited");
+ label_value.setText(_("Unlimited"));
slider.setColour(Slider::Colour::Grey);
}