[rkward-cvs] [rkward] rkward/plugin: Make the string translatable

Yuri Chornoivan yurchor at ukr.net
Sat Dec 6 19:28:06 UTC 2014


Git commit 0f6ae5361cae2e5c5de70ce821f111f448de1566 by Yuri Chornoivan.
Committed on 06/12/2014 at 19:27.
Pushed by yurchor into branch 'master'.

Make the string translatable

M  +3    -1    rkward/plugin/rkvarselector.cpp

http://commits.kde.org/rkward/0f6ae5361cae2e5c5de70ce821f111f448de1566

diff --git a/rkward/plugin/rkvarselector.cpp b/rkward/plugin/rkvarselector.cpp
index 1d61ed3..b67aeed 100644
--- a/rkward/plugin/rkvarselector.cpp
+++ b/rkward/plugin/rkvarselector.cpp
@@ -20,6 +20,8 @@
 #include <QVBoxLayout>
 #include <qlabel.h>
 
+#include <klocale.h>
+
 #include "../misc/xmlhelper.h"
 #include "../rkglobals.h"
 #include "../misc/rkobjectlistview.h"
@@ -40,7 +42,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", "Select Variable(s)"), this);
+	QLabel *label = new QLabel (element.attribute ("label", i18n ("Select Variable(s)")), this);
 	vbox->addWidget (label);
 
 	list_view = new RKObjectListView (this);





More information about the rkward-tracker mailing list