summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorEdwin Mons <edwin.mons@isode.com>2016-02-10 12:48:21 (GMT)
committerKevin Smith <kevin.smith@isode.com>2016-02-11 09:31:49 (GMT)
commitbdbb6e8eb0c8e5a9b6e2db2195dd0518b5b4701d (patch)
treec476775e62a9cb4d1f0a2b4671fbf40fc85c1e53 /Swift
parentaf6493bf45fcd9174b485f8ae0532e2eb4e6914e (diff)
downloadswift-bdbb6e8eb0c8e5a9b6e2db2195dd0518b5b4701d.zip
swift-bdbb6e8eb0c8e5a9b6e2db2195dd0518b5b4701d.tar.bz2
Make Add <field> in the VCard wizard translatable
Used to use simple string contactenation, but that's unsuitable to at least Dutch. Test-Information: Test platform OS X 10.11 Untranslated VCard field dropdown looks as before. Change-Id: I371b47d570032deffa0ed662ba13964d96b22633
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtVCardWidget/QtVCardWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtVCardWidget/QtVCardWidget.cpp b/Swift/QtUI/QtVCardWidget/QtVCardWidget.cpp
index ac087ed..9092e08 100644
--- a/Swift/QtUI/QtVCardWidget/QtVCardWidget.cpp
+++ b/Swift/QtUI/QtVCardWidget/QtVCardWidget.cpp
@@ -343,7 +343,7 @@ void QtVCardWidget::removeField(QtVCardGeneralField *field) {
void QtVCardWidget::addFieldType(QMenu* menu, boost::shared_ptr<QtVCardFieldInfo> fieldType) {
if (!fieldType->getMenuName().isEmpty()) {
- QAction* action = new QAction(tr("Add ") + fieldType->getMenuName(), this);
+ QAction* action = new QAction(tr("Add %1").arg(fieldType->getMenuName()), this);
actionFieldInfo[action] = fieldType;
connect(action, SIGNAL(triggered()), this, SLOT(addField()));
menu->addAction(action);