From bdbb6e8eb0c8e5a9b6e2db2195dd0518b5b4701d Mon Sep 17 00:00:00 2001 From: Edwin Mons Date: Wed, 10 Feb 2016 13:48:21 +0100 Subject: Make Add 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 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 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); -- cgit v0.10.2-6-g49f6