Commit 428b2b95 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Fix tr()-messages in QNX.



Do not concatenate translated parts, this will result in incorrect
grammar.

Change-Id: Ieba7c948c09b927213ddd127be80651333f911ee
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent e1760131
......@@ -490,18 +490,18 @@ void BlackBerryInstallWizardFinalPage::initializePage()
}
}
QString actionMsg;
if (m_data.mode == BlackBerryInstallerDataHandler::UninstallMode)
actionMsg = tr("uninstalling");
else
actionMsg = tr("installing");
QString message;
if (m_data.exitCode == 0 && m_data.exitStatus == QProcess::NormalExit) {
label->setText(tr("Finished %1 target:\n %2").arg(actionMsg, m_data.target));
message = m_data.mode == BlackBerryInstallerDataHandler::UninstallMode ?
tr("Finished uninstalling target:\n %1").arg(m_data.target) :
tr("Finished installing target:\n %1").arg(m_data.target);
emit done();
} else {
label->setText(tr("An error has occurred while %1 target:\n %2").arg(actionMsg, m_data.target));
message = m_data.mode == BlackBerryInstallerDataHandler::UninstallMode ?
tr("An error has occurred while uninstalling target:\n %1").arg(m_data.target) :
tr("An error has occurred while installing target:\n %1").arg(m_data.target);
}
label->setText(message);
}
} // namespace Internal
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment