From 6d612941482cd1c40a2781453775bbd6a1c8bfed Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Tue, 9 Jan 2018 17:39:06 +0100 Subject: [PATCH] iOS: Include number into translated strings which depend on it Using this hack will mess up some languages. Change-Id: Ifbd42ecbec31371fe18cc3e8a5e36566b7c84fb9 Reviewed-by: Oswald Buddenhagen Reviewed-by: Leena Miettinen --- src/plugins/ios/iossettingswidget.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/ios/iossettingswidget.cpp b/src/plugins/ios/iossettingswidget.cpp index 0cb54bd28bc..02168a79add 100644 --- a/src/plugins/ios/iossettingswidget.cpp +++ b/src/plugins/ios/iossettingswidget.cpp @@ -119,7 +119,7 @@ void IosSettingsWidget::onStart() QPointer statusDialog = new SimulatorOperationDialog(this); statusDialog->setAttribute(Qt::WA_DeleteOnClose); - statusDialog->addMessage(tr("Starting simulator devices...", "", simulatorInfoList.count()), + statusDialog->addMessage(tr("Starting %n simulator device(s)...", "", simulatorInfoList.count()), Utils::NormalMessageFormat); QList> futureList; @@ -185,7 +185,7 @@ void IosSettingsWidget::onReset() const int userInput = QMessageBox::question(this, tr("Reset"), tr("Do you really want to reset the contents and settings" - " of the selected devices?", "", + " of the %n selected device(s)?", "", simulatorInfoList.count())); if (userInput == QMessageBox::No) return; @@ -242,14 +242,14 @@ void IosSettingsWidget::onDelete() return; const int userInput = QMessageBox::question(this, tr("Delete Device"), - tr("Do you really want to delete the selected " - "devices?", "", simulatorInfoList.count())); + tr("Do you really want to delete the %n selected " + "device(s)?", "", simulatorInfoList.count())); if (userInput == QMessageBox::No) return; QPointer statusDialog = new SimulatorOperationDialog(this); statusDialog->setAttribute(Qt::WA_DeleteOnClose); - statusDialog->addMessage(tr("Deleting simulator devices...", "", simulatorInfoList.count()), + statusDialog->addMessage(tr("Deleting %n simulator device(s)...", "", simulatorInfoList.count()), Utils::NormalMessageFormat); QList> futureList; foreach (const SimulatorInfo &info, simulatorInfoList) { @@ -280,7 +280,7 @@ void IosSettingsWidget::onScreenshot() QPointer statusDialog = new SimulatorOperationDialog(this); statusDialog->setAttribute(Qt::WA_DeleteOnClose); - statusDialog->addMessage(tr("Capturing screenshots from devices...", "", + statusDialog->addMessage(tr("Capturing screenshots from %n device(s)...", "", simulatorInfoList.count()), Utils::NormalMessageFormat); QList> futureList; foreach (const SimulatorInfo &info, simulatorInfoList) {