[rkward] /: Use translated strings for varselector caption
Thomas Friedrichsmeier
thomas.friedrichsmeier at ruhr-uni-bochum.de
Fri Nov 13 08:29:40 UTC 2015
Git commit 02fdab6f9a321c383afd4e3dcfab2474dc2dc8af by Thomas Friedrichsmeier.
Committed on 13/11/2015 at 08:29.
Pushed by tfry into branch 'master'.
Use translated strings for varselector caption
M +1 -0 ChangeLog
M +3 -1 rkward/plugin/rkvarselector.cpp
http://commits.kde.org/rkward/02fdab6f9a321c383afd4e3dcfab2474dc2dc8af
diff --git a/ChangeLog b/ChangeLog
index 7ab4e1b..216f538 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+- Workspace browser gains functionality to search / filter objects by name
- Separate globalenv() and other environments in the search path more clearly in workspace browser
- Fix some minor toolbar glitches
- Complete rework of <optionset> UI for better usability
diff --git a/rkward/plugin/rkvarselector.cpp b/rkward/plugin/rkvarselector.cpp
index c69eab0..e528a78 100644
--- a/rkward/plugin/rkvarselector.cpp
+++ b/rkward/plugin/rkvarselector.cpp
@@ -36,6 +36,8 @@
RKVarSelector::RKVarSelector (const QDomElement &element, RKComponent *parent_component, QWidget *parent_widget) : RKComponent (parent_component, parent_widget) {
RK_TRACE (PLUGIN);
+ XMLHelper *xml = parent_component->xmlHelper ();
+
// TODO: read filter settings
addChild ("selected", selected = new RKComponentPropertyRObjects (this, false));
selected->setInternal (true);
@@ -46,7 +48,7 @@ RKVarSelector::RKVarSelector (const QDomElement &element, RKComponent *parent_co
QVBoxLayout *vbox = new QVBoxLayout (this);
vbox->setContentsMargins (0, 0, 0, 0);
- QLabel *label = new QLabel (element.attribute ("label", i18n ("Select Variable(s)")), this);
+ QLabel *label = new QLabel (xml->i18nStringAttribute (element, "label", i18n ("Select Variable(s)"), DL_INFO), this);
vbox->addWidget (label);
// TODO: Or should these actions be moved to RKObjectListView, non-tool-window-mode?
More information about the rkward-tracker
mailing list