summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-07-08 12:40:38 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-07-08 12:40:38 +0200
commit76e85abf2c2d5c94242514008b7f7cf5bf19f76d (patch)
tree2a4e3bc9c074f352beb0ec7746c305e5e7a7ad80 /src
parent74861fa16106c8d053c5a69228abbb9d6aea5557 (diff)
downloadqt-creator-76e85abf2c2d5c94242514008b7f7cf5bf19f76d.tar.gz
Debugger: Fix some tr-errors.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp17
-rw-r--r--src/plugins/debugger/gdb/abstractplaingdbadapter.h3
-rw-r--r--src/plugins/debugger/moduleshandler.cpp5
3 files changed, 17 insertions, 8 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index eb29883364..7e847eab48 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -378,7 +378,7 @@ class DebugMode : public Core::BaseMode
public:
DebugMode(QObject *parent = 0) : BaseMode(parent)
{
- setDisplayName(tr("Debug"));
+ setDisplayName(QCoreApplication::translate("Debugger::Internal::DebugMode", "Debug"));
setId(MODE_DEBUG);
setIcon(QIcon(":/fancyactionbar/images/mode_Debug.png"));
setPriority(P_MODE_DEBUG);
@@ -535,7 +535,8 @@ static inline bool oxygenStyle()
}
class DebuggingHelperOptionPage : public Core::IOptionsPage
-{
+{ // Needs tr - context
+ Q_OBJECT
public:
DebuggingHelperOptionPage() {}
@@ -2689,17 +2690,21 @@ bool DebuggerListener::coreAboutToClose()
}
const QString question = cleanTermination ?
- tr("A debugging session is still in progress.\n"
+ QCoreApplication::translate("Debugger::Internal::DebuggerListener",
+ "A debugging session is still in progress.\n"
"Would you like to terminate it?") :
- tr("A debugging session is still in progress. "
+ QCoreApplication::translate("Debugger::Internal::DebuggerListener",
+ "A debugging session is still in progress. "
"Terminating the session in the current"
" state (%1) can leave the target in an inconsistent state."
" Would you still like to terminate it?")
.arg(_(DebuggerEngine::stateName(plugin->state())));
- QMessageBox::StandardButton answer =
+ const QString title
+ = QCoreApplication::translate("Debugger::Internal::DebuggerListener",
+ "Close Debugging Session"); QMessageBox::StandardButton answer =
QMessageBox::question(DebuggerUISwitcher::instance()->mainWindow(),
- tr("Close Debugging Session"), question,
+ title, question,
QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes);
if (answer != QMessageBox::Yes)
diff --git a/src/plugins/debugger/gdb/abstractplaingdbadapter.h b/src/plugins/debugger/gdb/abstractplaingdbadapter.h
index 9d6fddcc6e..623fb5e889 100644
--- a/src/plugins/debugger/gdb/abstractplaingdbadapter.h
+++ b/src/plugins/debugger/gdb/abstractplaingdbadapter.h
@@ -36,7 +36,8 @@ namespace Debugger {
namespace Internal {
class AbstractPlainGdbAdapter : public AbstractGdbAdapter
-{
+{ // Needs tr - context
+ Q_OBJECT
public:
AbstractPlainGdbAdapter(GdbEngine *engine, QObject *parent = 0);
diff --git a/src/plugins/debugger/moduleshandler.cpp b/src/plugins/debugger/moduleshandler.cpp
index 3b0793af30..a01dfecefd 100644
--- a/src/plugins/debugger/moduleshandler.cpp
+++ b/src/plugins/debugger/moduleshandler.cpp
@@ -52,7 +52,8 @@ namespace Debugger {
namespace Internal {
class ModulesModel : public QAbstractItemModel
-{
+{ // Needs tr - context.
+ Q_OBJECT
public:
explicit ModulesModel(ModulesHandler *parent, DebuggerEngine *engine);
@@ -256,3 +257,5 @@ Modules ModulesHandler::modules() const
} // namespace Internal
} // namespace Debugger
+
+#include "moduleshandler.moc"