forked from qt-creator/qt-creator
LanguageClient: Tr::tr
Change-Id: Idbd7c5cdadba4f269b2033df91db0e05bb5281d5 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "client.h"
|
||||
#include "languageclientmanager.h"
|
||||
#include "languageclienttr.h"
|
||||
|
||||
#include <coreplugin/actionmanager/actioncontainer.h>
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
@@ -38,14 +39,14 @@ bool LanguageClientPlugin::initialize(const QStringList & /*arguments*/, QString
|
||||
|
||||
LanguageClientManager::init();
|
||||
LanguageClientSettings::registerClientType({Constants::LANGUAGECLIENT_STDIO_SETTINGS_ID,
|
||||
tr("Generic StdIO Language Server"),
|
||||
Tr::tr("Generic StdIO Language Server"),
|
||||
[]() { return new StdIOSettings; }});
|
||||
|
||||
//register actions
|
||||
ActionContainer *toolsDebugContainer = ActionManager::actionContainer(
|
||||
Core::Constants::M_TOOLS_DEBUG);
|
||||
|
||||
auto inspectAction = new QAction(tr("Inspect Language Clients..."), this);
|
||||
auto inspectAction = new QAction(Tr::tr("Inspect Language Clients..."), this);
|
||||
connect(inspectAction, &QAction::triggered, this, &LanguageClientManager::showInspector);
|
||||
toolsDebugContainer->addAction(
|
||||
ActionManager::registerAction(inspectAction, "LanguageClient.InspectLanguageClients"));
|
||||
|
||||
Reference in New Issue
Block a user