diff --git a/debuggers/common/midebuggerplugin.h b/debuggers/common/midebuggerplugin.h --- a/debuggers/common/midebuggerplugin.h +++ b/debuggers/common/midebuggerplugin.h @@ -52,7 +52,7 @@ Q_INTERFACES(KDevelop::IStatus) public: - MIDebuggerPlugin(const QString& componentName, QObject *parent); + MIDebuggerPlugin(const QString& componentName, const QString& displayName, QObject *parent); ~MIDebuggerPlugin() override; void unload() override; @@ -104,7 +104,7 @@ void slotCloseDrKonqi(); protected: - void setupActions(); + void setupActions(const QString& displayName); void setupDBus(); void attachProcess(int pid); diff --git a/debuggers/common/midebuggerplugin.cpp b/debuggers/common/midebuggerplugin.cpp --- a/debuggers/common/midebuggerplugin.cpp +++ b/debuggers/common/midebuggerplugin.cpp @@ -56,24 +56,24 @@ using namespace KDevelop; using namespace KDevMI; -MIDebuggerPlugin::MIDebuggerPlugin(const QString &componentName, QObject *parent) +MIDebuggerPlugin::MIDebuggerPlugin(const QString &componentName, const QString& displayName, QObject *parent) : KDevelop::IPlugin(componentName, parent) { KDEV_USE_EXTENSION_INTERFACE(KDevelop::IStatus) core()->debugController()->initializeUi(); - setupActions(); + setupActions(displayName); setupDBus(); } -void MIDebuggerPlugin::setupActions() +void MIDebuggerPlugin::setupActions(const QString& displayName) { KActionCollection* ac = actionCollection(); QAction * action = new QAction(this); action->setIcon(QIcon::fromTheme("core")); - action->setText(i18n("Examine Core File...")); + action->setText(i18n("Examine Core File... (%1)", displayName)); action->setToolTip(i18n("Examine core file")); action->setWhatsThis(i18n("Examine core file" "

This loads a core file, which is typically created " @@ -87,7 +87,7 @@ #if KF5SysGuard_FOUND action = new QAction(this); action->setIcon(QIcon::fromTheme("connect_creating")); - action->setText(i18n("Attach to Process...")); + action->setText(i18n("Attach to Process... (%1)", displayName)); action->setToolTip(i18n("Attach to process")); action->setWhatsThis(i18n("Attach to process" "

Attaches the debugger to a running process.

")); diff --git a/debuggers/gdb/debuggerplugin.cpp b/debuggers/gdb/debuggerplugin.cpp --- a/debuggers/gdb/debuggerplugin.cpp +++ b/debuggers/gdb/debuggerplugin.cpp @@ -47,7 +47,7 @@ K_PLUGIN_FACTORY_WITH_JSON(CppDebuggerFactory, "kdevgdb.json", registerPlugin(); ) CppDebuggerPlugin::CppDebuggerPlugin(QObject *parent, const QVariantList &) - : MIDebuggerPlugin("kdevgdb", parent) + : MIDebuggerPlugin("kdevgdb", i18n("GDB"), parent) , disassemblefactory(nullptr) , gdbfactory(nullptr) , memoryviewerfactory(nullptr) diff --git a/debuggers/lldb/debuggerplugin.cpp b/debuggers/lldb/debuggerplugin.cpp --- a/debuggers/lldb/debuggerplugin.cpp +++ b/debuggers/lldb/debuggerplugin.cpp @@ -42,7 +42,7 @@ K_PLUGIN_FACTORY_WITH_JSON(LldbDebuggerFactory, "kdevlldb.json", registerPlugin(); ) LldbDebuggerPlugin::LldbDebuggerPlugin(QObject *parent, const QVariantList &) - : MIDebuggerPlugin("kdevlldb", parent) + : MIDebuggerPlugin("kdevlldb", i18n("LLDB"), parent) , m_consoleFactory(nullptr) , m_disassembleFactory(nullptr) {