From 2bf615249583680e4203764c7bba0f36fecf4513 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Mon, 16 Mar 2015 15:34:45 +0100 Subject: [PATCH] Debugger: fix UI text capitalization and punctuation Added full stops to ends of messages. Used book-style capitalization for message box titles. Wrote "operating system" in lower case. Change-Id: I8cee1a1c7f4ae55952daa507395845feae203ab9 Reviewed-by: hjk --- src/plugins/debugger/debuggerengine.cpp | 8 ++++---- src/plugins/debugger/terminal.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp index ef7c3fd72ce..c2a826b3902 100644 --- a/src/plugins/debugger/debuggerengine.cpp +++ b/src/plugins/debugger/debuggerengine.cpp @@ -1204,7 +1204,7 @@ void DebuggerEngine::notifyDebuggerProcessFinished(int exitCode, notifyEngineIll(); // Initiate shutdown sequence const QString msg = exitStatus == QProcess::CrashExit ? tr("The %1 process terminated.") : - tr("The %2 process terminated unexpectedly (exitCode %1)").arg(exitCode); + tr("The %2 process terminated unexpectedly (exit code %1).").arg(exitCode); AsynchronousMessageBox::critical(tr("Unexpected %1 Exit").arg(backendName), msg.arg(backendName)); break; @@ -1712,7 +1712,7 @@ bool DebuggerEngine::isDying() const QString DebuggerEngine::msgStopped(const QString &reason) { - return reason.isEmpty() ? tr("Stopped.") : tr("Stopped: \"%1\"").arg(reason); + return reason.isEmpty() ? tr("Stopped.") : tr("Stopped: \"%1\".").arg(reason); } QString DebuggerEngine::msgStoppedBySignal(const QString &meaning, @@ -1739,11 +1739,11 @@ void DebuggerEngine::showStoppedBySignalMessageBox(QString meaning, QString name if (meaning.isEmpty()) meaning = QLatin1Char(' ') + tr("", "meaning") + QLatin1Char(' '); const QString msg = tr("

The inferior stopped because it received a " - "signal from the Operating System.

" + "signal from the operating system.

" "" "
Signal name : %1
Signal meaning : %2
") .arg(name, meaning); - AsynchronousMessageBox::information(tr("Signal received"), msg); + AsynchronousMessageBox::information(tr("Signal Received"), msg); } void DebuggerEngine::showStoppedByExceptionMessageBox(const QString &description) diff --git a/src/plugins/debugger/terminal.cpp b/src/plugins/debugger/terminal.cpp index e133f365724..ee576d45d7c 100644 --- a/src/plugins/debugger/terminal.cpp +++ b/src/plugins/debugger/terminal.cpp @@ -90,7 +90,7 @@ void Terminal::setup() return; } if (!S_ISCHR(s.st_mode)) { - error(tr("Terminal: Slave is no character device")); + error(tr("Terminal: Slave is no character device.")); return; }