[rkward-cvs] [rkward] rkward: Fix two i18n lookup failures
Thomas Friedrichsmeier
thomas.friedrichsmeier at ruhr-uni-bochum.de
Sun Dec 7 08:11:24 UTC 2014
Git commit a9e4924816d0afd68205332a64fa0cb16d086b68 by Thomas Friedrichsmeier.
Committed on 07/12/2014 at 08:10.
Pushed by tfry into branch 'master'.
Fix two i18n lookup failures
M +1 -1 rkward/misc/xmlhelper.cpp
M +1 -1 rkward/plugin/rkradio.cpp
http://commits.kde.org/rkward/a9e4924816d0afd68205332a64fa0cb16d086b68
diff --git a/rkward/misc/xmlhelper.cpp b/rkward/misc/xmlhelper.cpp
index 61d606b..d9dba22 100644
--- a/rkward/misc/xmlhelper.cpp
+++ b/rkward/misc/xmlhelper.cpp
@@ -248,7 +248,7 @@ QString XMLHelper::i18nStringAttribute (const QDomElement& element, const QStrin
return def;
}
const QString context_element ("i18n_context");
- if (element.hasAttribute (context_element)) return (catalog->translate (context_element, element.attribute (name)));
+ if (element.hasAttribute (context_element)) return (catalog->translate (element.attribute (context_element), element.attribute (name)));
return (catalog->translate (element.attribute (name)));
}
diff --git a/rkward/plugin/rkradio.cpp b/rkward/plugin/rkradio.cpp
index 3fe40a3..42d79c96 100644
--- a/rkward/plugin/rkradio.cpp
+++ b/rkward/plugin/rkradio.cpp
@@ -42,7 +42,7 @@ RKRadio::RKRadio (const QDomElement &element, RKComponent *parent_component, QWi
// create ButtonGroup
group = new QButtonGroup (this);
- group_box = new QGroupBox (xml->getStringAttribute (element, "label", i18n ("Select one:"), DL_INFO), this);
+ group_box = new QGroupBox (xml->i18nStringAttribute (element, "label", i18n ("Select one:"), DL_INFO), this);
new QVBoxLayout (group_box);
addOptionsAndInit (element);
More information about the rkward-tracker
mailing list