From 97a6dc2c36bc0ce64b2392af7db96724e20b0681 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Fri, 28 Jul 2017 10:19:05 +0200 Subject: [PATCH] ProjectExplorer: Add punctuation to ends of messages Change-Id: Idaa794204b87b5a139203a6d183935425ecfd67e Reviewed-by: Tobias Hunger --- src/plugins/projectexplorer/projectexplorer.cpp | 4 ++-- src/plugins/projectexplorer/runconfiguration.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 7e979b56e30..f47f2e05105 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -1452,7 +1452,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er }); expander->registerFileVariables("CurrentRun:Executable", - tr("The currently active run configuration's executable (if applicable)"), + tr("The currently active run configuration's executable (if applicable)."), [this]() -> QString { if (Target *target = activeTarget()) { if (RunConfiguration *rc = target->activeRunConfiguration()) { @@ -1811,7 +1811,7 @@ ProjectExplorerPlugin::OpenProjectResult ProjectExplorerPlugin::openProjects(con if (ProjectManager::canOpenProjectForMimeType(mt)) { if (!QFileInfo(filePath).isFile()) { appendError(errorString, - tr("Failed opening project \"%1\": Project is not a file").arg(fileName)); + tr("Failed opening project \"%1\": Project is not a file.").arg(fileName)); } else if (Project *pro = ProjectManager::openProject(mt, Utils::FileName::fromString(filePath))) { QObject::connect(pro, &Project::parsingFinished, [pro]() { emit SessionManager::instance()->projectFinishedParsing(pro); diff --git a/src/plugins/projectexplorer/runconfiguration.cpp b/src/plugins/projectexplorer/runconfiguration.cpp index b0f06be3583..6c4336ecba9 100644 --- a/src/plugins/projectexplorer/runconfiguration.cpp +++ b/src/plugins/projectexplorer/runconfiguration.cpp @@ -936,7 +936,7 @@ void RunControlPrivate::onWorkerStarted(RunWorker *worker) continueStart(); return; } - showError(tr("Unexpected run control state %1 when worker %2 started") + showError(tr("Unexpected run control state %1 when worker %2 started.") .arg(stateName(state)) .arg(worker->d->id)); } @@ -1467,11 +1467,11 @@ bool RunWorkerPrivate::canStart() const void RunWorkerPrivate::timerEvent(QTimerEvent *ev) { if (ev->timerId() == startWatchdogTimerId) { - q->reportFailure(tr("Worker start timed out")); + q->reportFailure(tr("Worker start timed out.")); return; } if (ev->timerId() == stopWatchdogTimerId) { - q->reportFailure(tr("Worker stop timed out")); + q->reportFailure(tr("Worker stop timed out.")); return; } } @@ -1610,7 +1610,7 @@ QString RunWorker::userMessageForProcessError(QProcess::ProcessError error, cons "permissions to invoke the program.").arg(program); break; case QProcess::Crashed: - msg = tr("The process was ended forcefully"); + msg = tr("The process was ended forcefully."); break; case QProcess::Timedout: // "The last waitFor...() function timed out. "