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 <oswald.buddenhagen@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
Robert Loehning
2018-01-09 17:39:06 +01:00
parent 01bc302c48
commit 6d61294148

View File

@@ -119,7 +119,7 @@ void IosSettingsWidget::onStart()
QPointer<SimulatorOperationDialog> statusDialog = new SimulatorOperationDialog(this); QPointer<SimulatorOperationDialog> statusDialog = new SimulatorOperationDialog(this);
statusDialog->setAttribute(Qt::WA_DeleteOnClose); 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); Utils::NormalMessageFormat);
QList<QFuture<void>> futureList; QList<QFuture<void>> futureList;
@@ -185,7 +185,7 @@ void IosSettingsWidget::onReset()
const int userInput = QMessageBox::question(this, tr("Reset"), const int userInput = QMessageBox::question(this, tr("Reset"),
tr("Do you really want to reset the contents and settings" tr("Do you really want to reset the contents and settings"
" of the selected devices?", "", " of the %n selected device(s)?", "",
simulatorInfoList.count())); simulatorInfoList.count()));
if (userInput == QMessageBox::No) if (userInput == QMessageBox::No)
return; return;
@@ -242,14 +242,14 @@ void IosSettingsWidget::onDelete()
return; return;
const int userInput = QMessageBox::question(this, tr("Delete Device"), const int userInput = QMessageBox::question(this, tr("Delete Device"),
tr("Do you really want to delete the selected " tr("Do you really want to delete the %n selected "
"devices?", "", simulatorInfoList.count())); "device(s)?", "", simulatorInfoList.count()));
if (userInput == QMessageBox::No) if (userInput == QMessageBox::No)
return; return;
QPointer<SimulatorOperationDialog> statusDialog = new SimulatorOperationDialog(this); QPointer<SimulatorOperationDialog> statusDialog = new SimulatorOperationDialog(this);
statusDialog->setAttribute(Qt::WA_DeleteOnClose); 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); Utils::NormalMessageFormat);
QList<QFuture<void>> futureList; QList<QFuture<void>> futureList;
foreach (const SimulatorInfo &info, simulatorInfoList) { foreach (const SimulatorInfo &info, simulatorInfoList) {
@@ -280,7 +280,7 @@ void IosSettingsWidget::onScreenshot()
QPointer<SimulatorOperationDialog> statusDialog = new SimulatorOperationDialog(this); QPointer<SimulatorOperationDialog> statusDialog = new SimulatorOperationDialog(this);
statusDialog->setAttribute(Qt::WA_DeleteOnClose); 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); simulatorInfoList.count()), Utils::NormalMessageFormat);
QList<QFuture<void>> futureList; QList<QFuture<void>> futureList;
foreach (const SimulatorInfo &info, simulatorInfoList) { foreach (const SimulatorInfo &info, simulatorInfoList) {