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 <hjk@theqtcompany.com>
This commit is contained in:
Leena Miettinen
2015-03-16 15:34:45 +01:00
committed by hjk
parent 51513afa61
commit 2bf6152495
2 changed files with 5 additions and 5 deletions

View File

@@ -1204,7 +1204,7 @@ void DebuggerEngine::notifyDebuggerProcessFinished(int exitCode,
notifyEngineIll(); // Initiate shutdown sequence notifyEngineIll(); // Initiate shutdown sequence
const QString msg = exitStatus == QProcess::CrashExit ? const QString msg = exitStatus == QProcess::CrashExit ?
tr("The %1 process terminated.") : 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), AsynchronousMessageBox::critical(tr("Unexpected %1 Exit").arg(backendName),
msg.arg(backendName)); msg.arg(backendName));
break; break;
@@ -1712,7 +1712,7 @@ bool DebuggerEngine::isDying() const
QString DebuggerEngine::msgStopped(const QString &reason) 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, QString DebuggerEngine::msgStoppedBySignal(const QString &meaning,
@@ -1739,11 +1739,11 @@ void DebuggerEngine::showStoppedBySignalMessageBox(QString meaning, QString name
if (meaning.isEmpty()) if (meaning.isEmpty())
meaning = QLatin1Char(' ') + tr("<Unknown>", "meaning") + QLatin1Char(' '); meaning = QLatin1Char(' ') + tr("<Unknown>", "meaning") + QLatin1Char(' ');
const QString msg = tr("<p>The inferior stopped because it received a " const QString msg = tr("<p>The inferior stopped because it received a "
"signal from the Operating System.<p>" "signal from the operating system.<p>"
"<table><tr><td>Signal name : </td><td>%1</td></tr>" "<table><tr><td>Signal name : </td><td>%1</td></tr>"
"<tr><td>Signal meaning : </td><td>%2</td></tr></table>") "<tr><td>Signal meaning : </td><td>%2</td></tr></table>")
.arg(name, meaning); .arg(name, meaning);
AsynchronousMessageBox::information(tr("Signal received"), msg); AsynchronousMessageBox::information(tr("Signal Received"), msg);
} }
void DebuggerEngine::showStoppedByExceptionMessageBox(const QString &description) void DebuggerEngine::showStoppedByExceptionMessageBox(const QString &description)

View File

@@ -90,7 +90,7 @@ void Terminal::setup()
return; return;
} }
if (!S_ISCHR(s.st_mode)) { if (!S_ISCHR(s.st_mode)) {
error(tr("Terminal: Slave is no character device")); error(tr("Terminal: Slave is no character device."));
return; return;
} }