From bb8d0d2181fd7cd2f0850e558c4ca897f65acaff Mon Sep 17 00:00:00 2001
From: Robert Loehning <robert.loehning@digia.com>
Date: Fri, 22 Aug 2014 13:26:36 +0200
Subject: [PATCH] Do not shout at users

Change-Id: I744a3d45b67a4596ac8cc5371d9e3cb303946ae1
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
---
 src/libs/utils/projectnamevalidatinglineedit.cpp | 2 +-
 src/plugins/clearcase/clearcaseplugin.cpp        | 2 +-
 src/plugins/cvs/cvsplugin.cpp                    | 2 +-
 src/plugins/debugger/debuggerplugin.cpp          | 2 +-
 src/plugins/help/qtwebkithelpviewer.cpp          | 2 +-
 src/plugins/qmakeprojectmanager/qmakenodes.cpp   | 2 +-
 src/plugins/qnx/qnxanalyzesupport.cpp            | 2 +-
 src/plugins/qnx/qnxdebugsupport.cpp              | 2 +-
 src/plugins/qnx/qnxruncontrol.cpp                | 2 +-
 src/plugins/subversion/subversionplugin.cpp      | 2 +-
 10 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/libs/utils/projectnamevalidatinglineedit.cpp b/src/libs/utils/projectnamevalidatinglineedit.cpp
index 549f3af01f0..49e99cac1f1 100644
--- a/src/libs/utils/projectnamevalidatinglineedit.cpp
+++ b/src/libs/utils/projectnamevalidatinglineedit.cpp
@@ -48,7 +48,7 @@ bool ProjectNameValidatingLineEdit::validateProjectName(const QString &name, QSt
     int pos = FileUtils::indexOfQmakeUnfriendly(name);
     if (pos >= 0) {
         if (errorMessage)
-            *errorMessage = tr("Invalid character \"%1\" found!").arg(name.at(pos));
+            *errorMessage = tr("Invalid character \"%1\" found.").arg(name.at(pos));
         return false;
     }
     if (name.contains(QLatin1Char('.'))) {
diff --git a/src/plugins/clearcase/clearcaseplugin.cpp b/src/plugins/clearcase/clearcaseplugin.cpp
index e3b53000467..3c198bc63d6 100644
--- a/src/plugins/clearcase/clearcaseplugin.cpp
+++ b/src/plugins/clearcase/clearcaseplugin.cpp
@@ -1353,7 +1353,7 @@ void ClearCasePlugin::viewStatus()
         }
     }
     if (!anymod)
-        outputwindow->appendWarning(QLatin1String("No modified files found!"));
+        outputwindow->appendWarning(QLatin1String("No modified files found."));
 }
 
 void ClearCasePlugin::ccUpdate(const QString &workingDir, const QStringList &relativePaths)
diff --git a/src/plugins/cvs/cvsplugin.cpp b/src/plugins/cvs/cvsplugin.cpp
index 5ccff454390..386a8087b9f 100644
--- a/src/plugins/cvs/cvsplugin.cpp
+++ b/src/plugins/cvs/cvsplugin.cpp
@@ -1147,7 +1147,7 @@ CvsResponse CvsPlugin::runCvs(const QString &workingDirectory,
     CvsResponse response;
     if (executable.isEmpty()) {
         response.result = CvsResponse::OtherError;
-        response.message =tr("No cvs executable specified!");
+        response.message =tr("No cvs executable specified.");
         return response;
     }
     // Run, connect stderr to the output window
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index dd1a8609589..08f28671cdb 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -1386,7 +1386,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
                     } else if (sp.executable.isEmpty()) {
                         sp.executable = key;
                     } else {
-                        *errorMessage = DebuggerPlugin::tr("Only one executable allowed!");
+                        *errorMessage = DebuggerPlugin::tr("Only one executable allowed.");
                         return false;
                     }
                 }
diff --git a/src/plugins/help/qtwebkithelpviewer.cpp b/src/plugins/help/qtwebkithelpviewer.cpp
index ec42c79d4b6..316a6e8dfa5 100644
--- a/src/plugins/help/qtwebkithelpviewer.cpp
+++ b/src/plugins/help/qtwebkithelpviewer.cpp
@@ -212,7 +212,7 @@ void HelpPage::onHandleUnsupportedContent(QNetworkReply *reply)
     }
 
     // set a default error string we are going to display
-    QString errorString = HelpViewer::tr("Unknown or unsupported content!");
+    QString errorString = HelpViewer::tr("Unknown or unsupported content.");
     if (reply->error() == QNetworkReply::NoError) {
         // try to open the url using using the desktop service
         if (QDesktopServices::openUrl(reply->url())) {
diff --git a/src/plugins/qmakeprojectmanager/qmakenodes.cpp b/src/plugins/qmakeprojectmanager/qmakenodes.cpp
index 5ea08b762ce..43da2227b88 100644
--- a/src/plugins/qmakeprojectmanager/qmakenodes.cpp
+++ b/src/plugins/qmakeprojectmanager/qmakenodes.cpp
@@ -1139,7 +1139,7 @@ bool QmakePriFileNode::ensureWriteableProFile(const QString &file)
             bool makeWritable = QFile::setPermissions(file, fi.permissions() | QFile::WriteUser);
             if (!makeWritable) {
                 QMessageBox::warning(Core::ICore::mainWindow(),
-                                     tr("Failed!"),
+                                     tr("Failed"),
                                      tr("Could not write project file %1.").arg(file));
                 return false;
             }
diff --git a/src/plugins/qnx/qnxanalyzesupport.cpp b/src/plugins/qnx/qnxanalyzesupport.cpp
index 4851e296c46..94b5341465d 100644
--- a/src/plugins/qnx/qnxanalyzesupport.cpp
+++ b/src/plugins/qnx/qnxanalyzesupport.cpp
@@ -160,5 +160,5 @@ void QnxAnalyzeSupport::showMessage(const QString &msg, Utils::OutputFormat form
 
 void QnxAnalyzeSupport::printMissingWarning()
 {
-    showMessage(tr("Warning: \"slog2info\" is not found on the device, debug output not available!"), Utils::ErrorMessageFormat);
+    showMessage(tr("Warning: \"slog2info\" is not found on the device, debug output not available."), Utils::ErrorMessageFormat);
 }
diff --git a/src/plugins/qnx/qnxdebugsupport.cpp b/src/plugins/qnx/qnxdebugsupport.cpp
index f06af617bfe..f25df2b3a83 100644
--- a/src/plugins/qnx/qnxdebugsupport.cpp
+++ b/src/plugins/qnx/qnxdebugsupport.cpp
@@ -190,7 +190,7 @@ void QnxDebugSupport::handleError(const QString &error)
 void QnxDebugSupport::printMissingWarning()
 {
     if (m_engine)
-        m_engine->showMessage(tr("Warning: \"slog2info\" is not found on the device, debug output not available!"), Debugger::AppError);
+        m_engine->showMessage(tr("Warning: \"slog2info\" is not found on the device, debug output not available."), Debugger::AppError);
 }
 
 void QnxDebugSupport::handleApplicationOutput(const QString &msg, Utils::OutputFormat outputFormat)
diff --git a/src/plugins/qnx/qnxruncontrol.cpp b/src/plugins/qnx/qnxruncontrol.cpp
index c0cdaaead83..79660ec9dcd 100644
--- a/src/plugins/qnx/qnxruncontrol.cpp
+++ b/src/plugins/qnx/qnxruncontrol.cpp
@@ -70,5 +70,5 @@ ProjectExplorer::RunControl::StopResult QnxRunControl::stop()
 
 void QnxRunControl::printMissingWarning()
 {
-    appendMessage(tr("Warning: \"slog2info\" is not found on the device, debug output not available!"), Utils::ErrorMessageFormat);
+    appendMessage(tr("Warning: \"slog2info\" is not found on the device, debug output not available."), Utils::ErrorMessageFormat);
 }
diff --git a/src/plugins/subversion/subversionplugin.cpp b/src/plugins/subversion/subversionplugin.cpp
index 153b3063b00..8c938bb80a3 100644
--- a/src/plugins/subversion/subversionplugin.cpp
+++ b/src/plugins/subversion/subversionplugin.cpp
@@ -1017,7 +1017,7 @@ SubversionResponse SubversionPlugin::runSvn(const QString &workingDir,
     SubversionResponse response;
     if (executable.isEmpty()) {
         response.error = true;
-        response.message =tr("No subversion executable specified!");
+        response.message =tr("No subversion executable specified.");
         return response;
     }
 
-- 
GitLab