diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-10-17 13:48:04 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2013-10-22 08:05:09 +0200 |
commit | 50f522b2f7b3f81caf30dfcba0b8b267dcfc7fff (patch) | |
tree | f81ce6fc57e9619bbea8494b4175bf071bab2010 /src/plugins/debugger | |
parent | 10f42df8b3532ae71fd7d405e28614f81bcf40e7 (diff) | |
download | qt-creator-50f522b2f7b3f81caf30dfcba0b8b267dcfc7fff.tar.gz |
Remove most trailing newlines from translated messages.
They are a hassle for translators and reviewers alike.
Change-Id: I07c1b61e8b6719e54fdc1f69cf63f573119a6776
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r-- | src/plugins/debugger/debuggerengine.cpp | 3 | ||||
-rw-r--r-- | src/plugins/debugger/debuggerrunner.cpp | 8 | ||||
-rw-r--r-- | src/plugins/debugger/gdb/coregdbadapter.cpp | 3 | ||||
-rw-r--r-- | src/plugins/debugger/gdb/gdbengine.cpp | 6 | ||||
-rw-r--r-- | src/plugins/debugger/gdb/gdbplainengine.cpp | 2 | ||||
-rw-r--r-- | src/plugins/debugger/gdb/remotegdbserveradapter.cpp | 3 | ||||
-rw-r--r-- | src/plugins/debugger/qml/qmladapter.cpp | 4 |
7 files changed, 16 insertions, 13 deletions
diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp index 30c4cf5a91..59058769bf 100644 --- a/src/plugins/debugger/debuggerengine.cpp +++ b/src/plugins/debugger/debuggerengine.cpp @@ -1810,7 +1810,8 @@ void DebuggerEngine::checkForReleaseBuild(const DebuggerStartParameters &sp) } showMessageBox(QMessageBox::Information, tr("Warning"), tr("This does not seem to be a \"Debug\" build.\n" - "Setting breakpoints by file name and line number may fail.\n").append(detailedWarning)); + "Setting breakpoints by file name and line number may fail.") + + QLatin1Char('\n') + detailedWarning); } } // namespace Debugger diff --git a/src/plugins/debugger/debuggerrunner.cpp b/src/plugins/debugger/debuggerrunner.cpp index a301f443fe..a7d33fdb5e 100644 --- a/src/plugins/debugger/debuggerrunner.cpp +++ b/src/plugins/debugger/debuggerrunner.cpp @@ -192,7 +192,7 @@ void DebuggerRunControl::start() // User canceled input dialog asking for executable when working on library project. if (d->m_engine->startParameters().startMode == StartInternal && d->m_engine->startParameters().executable.isEmpty()) { - appendMessage(tr("No executable specified.\n"), ErrorMessageFormat); + appendMessage(tr("No executable specified.") + QLatin1Char('\n'), ErrorMessageFormat); emit started(); emit finished(); return; @@ -232,12 +232,12 @@ void DebuggerRunControl::start() d->m_engine->startDebugger(this); if (d->m_running) - appendMessage(tr("Debugging starts\n"), NormalMessageFormat); + appendMessage(tr("Debugging starts") + QLatin1Char('\n'), NormalMessageFormat); } void DebuggerRunControl::startFailed() { - appendMessage(tr("Debugging has failed\n"), NormalMessageFormat); + appendMessage(tr("Debugging has failed") + QLatin1Char('\n'), NormalMessageFormat); d->m_running = false; emit finished(); d->m_engine->handleStartFailed(); @@ -245,7 +245,7 @@ void DebuggerRunControl::startFailed() void DebuggerRunControl::handleFinished() { - appendMessage(tr("Debugging has finished\n"), NormalMessageFormat); + appendMessage(tr("Debugging has finished") + QLatin1Char('\n'), NormalMessageFormat); if (d->m_engine) d->m_engine->handleFinished(); debuggerCore()->runControlFinished(d->m_engine); diff --git a/src/plugins/debugger/gdb/coregdbadapter.cpp b/src/plugins/debugger/gdb/coregdbadapter.cpp index ce66963e52..13f6326a21 100644 --- a/src/plugins/debugger/gdb/coregdbadapter.cpp +++ b/src/plugins/debugger/gdb/coregdbadapter.cpp @@ -211,8 +211,9 @@ void GdbCoreEngine::handleTargetCore(const GdbResponse &response) postCommand("p 5", CB(handleRoundTrip)); return; } - QString msg = tr("Attach to core \"%1\" failed:\n") + QString msg = tr("Attach to core \"%1\" failed:") .arg(startParameters().coreFile) + + QLatin1Char('\n') + QString::fromLocal8Bit(response.data["msg"].data()); notifyInferiorSetupFailed(msg); } diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index bdd1c40b36..ea2b2381c4 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1893,7 +1893,7 @@ void GdbEngine::pythonDumpersFailed() void GdbEngine::showExecutionError(const QString &message) { showMessageBox(QMessageBox::Critical, tr("Execution Error"), - tr("Cannot continue debugged process:\n") + message); + tr("Cannot continue debugged process:") + QLatin1Char('\n') + message); } void GdbEngine::handleExecuteContinue(const GdbResponse &response) @@ -2296,7 +2296,7 @@ void GdbEngine::handleExecuteNext(const GdbResponse &response) notifyInferiorRunFailed(); } else { showMessageBox(QMessageBox::Critical, tr("Execution Error"), - tr("Cannot continue debugged process:\n") + QString::fromLocal8Bit(msg)); + tr("Cannot continue debugged process:") + QLatin1Char('\n') + QString::fromLocal8Bit(msg)); notifyInferiorIll(); } } @@ -3848,7 +3848,7 @@ void GdbEngine::handleMakeSnapshot(const GdbResponse &response) } else { QByteArray msg = response.data["msg"].data(); showMessageBox(QMessageBox::Critical, tr("Snapshot Creation Error"), - tr("Cannot create snapshot:\n") + QString::fromLocal8Bit(msg)); + tr("Cannot create snapshot:") + QLatin1Char('\n') + QString::fromLocal8Bit(msg)); } } diff --git a/src/plugins/debugger/gdb/gdbplainengine.cpp b/src/plugins/debugger/gdb/gdbplainengine.cpp index eaa992ec75..4050e9048e 100644 --- a/src/plugins/debugger/gdb/gdbplainengine.cpp +++ b/src/plugins/debugger/gdb/gdbplainengine.cpp @@ -78,7 +78,7 @@ void GdbPlainEngine::handleFileExecAndSymbols(const GdbResponse &response) QString msg = fromLocalEncoding(ba); // Extend the message a bit in unknown cases. if (!ba.endsWith("File format not recognized")) - msg = tr("Starting executable failed:\n") + msg; + msg = tr("Starting executable failed:") + QLatin1Char('\n') + msg; notifyInferiorSetupFailed(msg); } } diff --git a/src/plugins/debugger/gdb/remotegdbserveradapter.cpp b/src/plugins/debugger/gdb/remotegdbserveradapter.cpp index fe1913d64e..dfe6587112 100644 --- a/src/plugins/debugger/gdb/remotegdbserveradapter.cpp +++ b/src/plugins/debugger/gdb/remotegdbserveradapter.cpp @@ -252,7 +252,8 @@ void GdbRemoteServerEngine::handleFileExecAndSymbols(const GdbResponse &response callTargetRemote(); } else { QByteArray reason = response.data["msg"].data(); - QString msg = tr("Reading debug information failed:\n"); + QString msg = tr("Reading debug information failed:"); + msg += QLatin1Char('\n'); msg += QString::fromLocal8Bit(reason); if (reason.endsWith("No such file or directory.")) { showMessage(_("INFERIOR STARTUP: BINARY NOT FOUND")); diff --git a/src/plugins/debugger/qml/qmladapter.cpp b/src/plugins/debugger/qml/qmladapter.cpp index ef7a7434d3..16c6628525 100644 --- a/src/plugins/debugger/qml/qmladapter.cpp +++ b/src/plugins/debugger/qml/qmladapter.cpp @@ -141,7 +141,7 @@ void QmlAdapter::connectionStateChanged() switch (m_conn->state()) { case QAbstractSocket::UnconnectedState: { - showConnectionStatusMessage(tr("Disconnected.\n\n")); + showConnectionStatusMessage(tr("Disconnected.") + QLatin1String("\n\n")); emit disconnected(); break; @@ -154,7 +154,7 @@ void QmlAdapter::connectionStateChanged() break; case QAbstractSocket::ConnectedState: { - showConnectionStatusMessage(tr("Connected.\n")); + showConnectionStatusMessage(tr("Connected.") + QLatin1Char('\n')); m_connectionTimer.stop(); |