An Uncaught Exception occurred:
%2
") + ? tr("An uncaught exception occurred:
%1
") .arg(Qt::escape(error)) - : tr("An Uncaught Exception occurred in %1:
%2
") + : tr("An uncaught exception occurred in %1:
%2
") .arg(stackFrames.value(0).file, Qt::escape(error)); showMessageBox(QMessageBox::Information, tr("Uncaught Exception"), msg); } else { diff --git a/src/plugins/qt4projectmanager/qmldebugginglibrary.cpp b/src/plugins/qt4projectmanager/qmldebugginglibrary.cpp index 0f4dfdf1a3a..87cd1d4a363 100644 --- a/src/plugins/qt4projectmanager/qmldebugginglibrary.cpp +++ b/src/plugins/qt4projectmanager/qmldebugginglibrary.cpp @@ -76,7 +76,7 @@ bool QmlDebuggingLibrary::build(const QString &directory, const QString &makeCo const Utils::Environment &env, const QString &targetMode, const QStringList &qmakeArguments, QString *output, QString *errorMessage) { - return buildHelper(QCoreApplication::translate("Qt4ProjectManager::QmlDebuggingLibrary", "Qml Debugging"), + return buildHelper(QCoreApplication::translate("Qt4ProjectManager::QmlDebuggingLibrary", "QML Debugging"), QLatin1String("qmljsdebugger.pro"), directory, makeCommand, qmakeCommand, mkspec, env, targetMode, qmakeArguments, output, errorMessage); @@ -111,7 +111,7 @@ QString QmlDebuggingLibrary::copy(const QString &qtInstallData, QString *errorMe } } *errorMessage = QCoreApplication::translate("Qt4ProjectManager::QmlDebuggingLibrary", - "Qml Debugging library could not be built in any of the directories:\n- %1\n\nReason: %2") + "QML Debugging library could not be built in any of the directories:\n- %1\n\nReason: %2") .arg(directories.join(QLatin1String("\n- ")), *errorMessage); return QString(); } diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemotoolchain.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemotoolchain.cpp index 04144c4c7af..25f5c7f8288 100644 --- a/src/plugins/qt4projectmanager/qt-maemo/maemotoolchain.cpp +++ b/src/plugins/qt4projectmanager/qt-maemo/maemotoolchain.cpp @@ -193,7 +193,7 @@ void MaemoToolChain::setQtVersionId(int id) m_targetAbi = version->qtAbis().at(0); updateId(); - setDisplayName(MaemoToolChainFactory::tr("Maemo Gcc for %1").arg(version->displayName())); + setDisplayName(MaemoToolChainFactory::tr("Maemo GCC for %1").arg(version->displayName())); } int MaemoToolChain::qtVersionId() const diff --git a/src/plugins/qt4projectmanager/qt-s60/s60deployconfigurationwidget.cpp b/src/plugins/qt4projectmanager/qt-s60/s60deployconfigurationwidget.cpp index bccf9cdd9f4..281167e876b 100644 --- a/src/plugins/qt4projectmanager/qt-s60/s60deployconfigurationwidget.cpp +++ b/src/plugins/qt4projectmanager/qt-s60/s60deployconfigurationwidget.cpp @@ -546,7 +546,7 @@ void S60DeployConfigurationWidget::updateDeviceInfo() m_codaInfoDevice->sendSymbianOsDataGetQtVersionCommand(Coda::CodaCallback(this, &S60DeployConfigurationWidget::getQtVersionCommandResult)); m_deviceInfoButton->setEnabled(false); } else - setDeviceInfoLabel(tr("Currently there is no information about device for this connection type."), true); + setDeviceInfoLabel(tr("Currently there is no information about the device for this connection type."), true); } void S60DeployConfigurationWidget::getQtVersionCommandResult(const Coda::CodaCommandResult &result) @@ -570,7 +570,7 @@ void S60DeployConfigurationWidget::updateDeviceInfo() startTable(resultString); QTextStream str(&resultString); - addToTable(str, tr("Qt version: "), ver); + addToTable(str, tr("Qt version:"), ver); QString systemVersion; int symVer = obj.value("symbianVersion").toInt(); @@ -620,7 +620,7 @@ void S60DeployConfigurationWidget::updateDeviceInfo() systemVersion.append(tr("Unrecognised S60 version 0x%1").arg(symVer, 0, 16)); break; } - addToTable(str, tr("OS version: "), systemVersion); + addToTable(str, tr("OS version:"), systemVersion); finishTable(resultString); } setDeviceInfoLabel(resultString); @@ -638,7 +638,7 @@ void S60DeployConfigurationWidget::updateDeviceInfo() QVariantHash obj = result.values[0].toVariant().toHash(); QString romVersion = obj.value("romVersion", tr("unknown")).toString(); romVersion.replace('\n', " "); // The ROM string is split across multiple lines, for some reason. - addToTable(str, tr("ROM version: "), romVersion); + addToTable(str, tr("ROM version:"), romVersion); QString pr = obj.value("prInfo").toString(); if (pr.length()) @@ -668,7 +668,7 @@ void S60DeployConfigurationWidget::updateDeviceInfo() addErrorToTable(str, tr("CODA version: "), tr("Error reading CODA version")); } else { QVariantList version = obj.value("version").toList(); - addToTable(str, tr("CODA version: "), + addToTable(str, tr("CODA version:"), QString("%1.%2.%3").arg(version[0].toInt()) .arg(version[1].toInt()) .arg(version[2].toInt())); @@ -703,7 +703,7 @@ void S60DeployConfigurationWidget::updateDeviceInfo() if (x && y) { startTable(resultString); QTextStream str(&resultString); - addToTable(str, tr("Screen size: "), QString("%1x%2").arg(x).arg(y)); + addToTable(str, tr("Screen size:"), QString("%1x%2").arg(x).arg(y)); finishTable(resultString); setDeviceInfoLabel(resultString); } diff --git a/src/plugins/vcsbase/vcsbaseclient.cpp b/src/plugins/vcsbase/vcsbaseclient.cpp index fd67c274f97..15dda5ff2a9 100644 --- a/src/plugins/vcsbase/vcsbaseclient.cpp +++ b/src/plugins/vcsbase/vcsbaseclient.cpp @@ -194,7 +194,7 @@ bool VCSBaseClient::vcsFullySynchronousExec(const QString &workingDir, if (!Utils::SynchronousProcess::readDataFromProcess(vcsProcess, m_clientSettings.timeoutMilliSeconds(), output, &stdErr, true)) { Utils::SynchronousProcess::stopProcess(vcsProcess); - outputWindow->appendError(VCSJobRunner::msgTimeout(m_clientSettings.timeoutSeconds())); + outputWindow->appendError(VCSJobRunner::msgTimeout(binary, m_clientSettings.timeoutSeconds())); return false; } if (!stdErr.isEmpty()) diff --git a/src/plugins/vcsbase/vcsjobrunner.cpp b/src/plugins/vcsbase/vcsjobrunner.cpp index 35c031c2222..a2fbdc3140a 100644 --- a/src/plugins/vcsbase/vcsjobrunner.cpp +++ b/src/plugins/vcsbase/vcsjobrunner.cpp @@ -197,9 +197,9 @@ QString VCSJobRunner::msgStartFailed(const QString &binary, const QString &why) arg(QDir::toNativeSeparators(binary), why); } -QString VCSJobRunner::msgTimeout(int timeoutSeconds) +QString VCSJobRunner::msgTimeout(const QString &binary, int timeoutSeconds) { - return tr("Timed out after %1s waiting for mercurial process to finish.").arg(timeoutSeconds); + return tr("Timed out after %1s waiting for the process %2 to finish.").arg(timeoutSeconds).arg(binary); } // Set environment for a VCS process to run in locale "C". Note that there appears @@ -281,7 +281,7 @@ void VCSJobRunner::task(const QSharedPointer