diff --git a/src/libs/languageserverprotocol/jsonrpcmessages.h b/src/libs/languageserverprotocol/jsonrpcmessages.h index 705e57d2eb7..68e0e1fc192 100644 --- a/src/libs/languageserverprotocol/jsonrpcmessages.h +++ b/src/libs/languageserverprotocol/jsonrpcmessages.h @@ -162,8 +162,8 @@ public: if (auto parameter = params()) return parameter->isValid(); if (errorMessage) - *errorMessage = QCoreApplication::tr("::LanguageServerProtocol", - "No parameters in \"%1\".").arg(method()); + *errorMessage = QCoreApplication::translate("::LanguageServerProtocol", + "No parameters in \"%1\".").arg(method()); return false; } }; @@ -375,8 +375,8 @@ public: if (id().isValid()) return true; if (errorMessage) - *errorMessage = QCoreApplication::tr("::LanguageServerProtocol", - "No ID set in \"%1\".").arg(this->method()); + *errorMessage = QCoreApplication::translate("::LanguageServerProtocol", + "No ID set in \"%1\".").arg(this->method()); return false; } diff --git a/src/plugins/autotest/testrunconfiguration.h b/src/plugins/autotest/testrunconfiguration.h index 867413aeae3..5fda1542af3 100644 --- a/src/plugins/autotest/testrunconfiguration.h +++ b/src/plugins/autotest/testrunconfiguration.h @@ -25,7 +25,7 @@ public: TestRunConfiguration(ProjectExplorer::Target *parent, TestConfiguration *config) : ProjectExplorer::RunConfiguration(parent, "AutoTest.TestRunConfig") { - setDefaultDisplayName(QCoreApplication::tr("::Autotest", "AutoTest Debug")); + setDefaultDisplayName(QCoreApplication::translate("::Autotest", "AutoTest Debug")); bool enableQuick = false; if (auto debuggable = dynamic_cast(config)) diff --git a/src/plugins/ctfvisualizer/ctfvisualizertool.h b/src/plugins/ctfvisualizer/ctfvisualizertool.h index 21b2c059fb3..24c1bf45cac 100644 --- a/src/plugins/ctfvisualizer/ctfvisualizertool.h +++ b/src/plugins/ctfvisualizer/ctfvisualizertool.h @@ -46,8 +46,8 @@ private: void toggleThreadRestriction(QAction *action); Utils::Perspective m_perspective{Constants::CtfVisualizerPerspectiveId, - QCoreApplication::tr("::CtfVisualizer", - "Chrome Trace Format Visualizer")}; + QCoreApplication::translate("::CtfVisualizer", + "Chrome Trace Format Visualizer")}; bool m_isLoading; QScopedPointer m_loadJson; diff --git a/src/plugins/mesonprojectmanager/mesonactionsmanager.h b/src/plugins/mesonprojectmanager/mesonactionsmanager.h index 8d306ba31e5..0bb81c753b3 100644 --- a/src/plugins/mesonprojectmanager/mesonactionsmanager.h +++ b/src/plugins/mesonprojectmanager/mesonactionsmanager.h @@ -14,8 +14,8 @@ class MesonActionsManager : public QObject { Q_OBJECT Utils::ParameterAction buildTargetContextAction{ - QCoreApplication::tr("::MesonProjectManager", "Build"), - QCoreApplication::tr("::MesonProjectManager", "Build \"%1\""), + QCoreApplication::translate("::MesonProjectManager", "Build"), + QCoreApplication::translate("::MesonProjectManager", "Build \"%1\""), Utils::ParameterAction::AlwaysEnabled /*handled manually*/ }; QAction configureActionMenu; diff --git a/src/plugins/perfprofiler/perfprofilertool.h b/src/plugins/perfprofiler/perfprofilertool.h index 078d1792373..0f158083a18 100644 --- a/src/plugins/perfprofiler/perfprofilertool.h +++ b/src/plugins/perfprofiler/perfprofilertool.h @@ -83,8 +83,8 @@ private: void finalize(); Utils::Perspective m_perspective{Constants::PerfProfilerPerspectiveId, - QCoreApplication::tr("::PerfProfiler", - "Performance Analyzer")}; + QCoreApplication::translate("::PerfProfiler", + "Performance Analyzer")}; QAction *m_startAction = nullptr; QAction *m_stopAction = nullptr; diff --git a/src/plugins/projectexplorer/compileoutputwindow.h b/src/plugins/projectexplorer/compileoutputwindow.h index 25020cc49d7..6efd41a34ff 100644 --- a/src/plugins/projectexplorer/compileoutputwindow.h +++ b/src/plugins/projectexplorer/compileoutputwindow.h @@ -37,7 +37,7 @@ public: QWidget *outputWidget(QWidget *) override; QList toolBarWidgets() const override; QString displayName() const override { - return QCoreApplication::tr("::ProjectExplorer","Compile Output"); } + return QCoreApplication::translate("::ProjectExplorer","Compile Output"); } int priorityInStatusBar() const override; void clearContents() override; bool canFocus() const override; diff --git a/src/plugins/projectexplorer/projectwelcomepage.h b/src/plugins/projectexplorer/projectwelcomepage.h index c4ac8945b47..a4e039f0706 100644 --- a/src/plugins/projectexplorer/projectwelcomepage.h +++ b/src/plugins/projectexplorer/projectwelcomepage.h @@ -43,7 +43,7 @@ class ProjectWelcomePage : public Core::IWelcomePage public: ProjectWelcomePage(); - QString title() const override { return QCoreApplication::tr("::ProjectExplorer", "Projects"); } + QString title() const override { return QCoreApplication::translate("::ProjectExplorer", "Projects"); } int priority() const override { return 20; } Utils::Id id() const override; QWidget *createWidget() const override; diff --git a/src/plugins/scxmleditor/common/search.h b/src/plugins/scxmleditor/common/search.h index 4daa699589e..6a25299d3e4 100644 --- a/src/plugins/scxmleditor/common/search.h +++ b/src/plugins/scxmleditor/common/search.h @@ -40,7 +40,7 @@ public: QString title() const override { - return QCoreApplication::tr("::ScxmlEditor", "Search"); + return QCoreApplication::translate("::ScxmlEditor", "Search"); } QIcon icon() const override