diff --git a/src/plugins/bineditor/bineditorplugin.cpp b/src/plugins/bineditor/bineditorplugin.cpp index 9a26c4a1cbea66ea34b32ba93a2b4e6aa7a9972a..2446a29543d7202223b784ccccfba744a2cc09f1 100644 --- a/src/plugins/bineditor/bineditorplugin.cpp +++ b/src/plugins/bineditor/bineditorplugin.cpp @@ -36,6 +36,7 @@ #include <coreplugin/icore.h> +#include <QCoreApplication> #include <QDir> #include <QFile> #include <QFileInfo> @@ -423,7 +424,7 @@ Core::Id BinEditorFactory::id() const QString BinEditorFactory::displayName() const { - return tr(Constants::C_BINEDITOR_DISPLAY_NAME); + return qApp->translate("OpenWith::Editors", Constants::C_BINEDITOR_DISPLAY_NAME); } Core::IDocument *BinEditorFactory::open(const QString &fileName) diff --git a/src/plugins/cppeditor/cppplugin.cpp b/src/plugins/cppeditor/cppplugin.cpp index ca3476bd401e37b6f625677e3eef18a09bad33ff..920c954696bdd7d3a1ebca2987e3835e053217cb 100644 --- a/src/plugins/cppeditor/cppplugin.cpp +++ b/src/plugins/cppeditor/cppplugin.cpp @@ -105,7 +105,7 @@ Core::Id CppEditorFactory::id() const QString CppEditorFactory::displayName() const { - return tr(CppEditor::Constants::CPPEDITOR_DISPLAY_NAME); + return qApp->translate("OpenWith::Editors", CppEditor::Constants::CPPEDITOR_DISPLAY_NAME); } Core::IDocument *CppEditorFactory::open(const QString &fileName) diff --git a/src/plugins/designer/formeditorfactory.cpp b/src/plugins/designer/formeditorfactory.cpp index 87bbb5fbcc5a27ae9536e6b36b6daba743bacafc..323d15c0f3be2fc7449275a5afec704dc34451d9 100644 --- a/src/plugins/designer/formeditorfactory.cpp +++ b/src/plugins/designer/formeditorfactory.cpp @@ -44,6 +44,7 @@ #include <coreplugin/editormanager/editormanager.h> #include <coreplugin/modemanager.h> +#include <QCoreApplication> #include <QFileInfo> #include <QDebug> @@ -68,7 +69,7 @@ Core::Id FormEditorFactory::id() const QString FormEditorFactory::displayName() const { - return tr(C_DESIGNER_XML_DISPLAY_NAME); + return qApp->translate("Designer", C_DESIGNER_XML_DISPLAY_NAME); } Core::IDocument *FormEditorFactory::open(const QString &fileName) diff --git a/src/plugins/genericprojectmanager/genericprojectfileseditor.cpp b/src/plugins/genericprojectmanager/genericprojectfileseditor.cpp index 6869454520454805fa6598701a3f6ed9c74ae229..c9f3ddfd672beabed1cb29c650dae30e7f3b6ad4 100644 --- a/src/plugins/genericprojectmanager/genericprojectfileseditor.cpp +++ b/src/plugins/genericprojectmanager/genericprojectfileseditor.cpp @@ -39,6 +39,8 @@ #include <texteditor/texteditoractionhandler.h> #include <texteditor/texteditorsettings.h> +#include <QCoreApplication> + using namespace GenericProjectManager; using namespace GenericProjectManager::Internal; @@ -76,7 +78,7 @@ Core::Id ProjectFilesFactory::id() const QString ProjectFilesFactory::displayName() const { - return tr(Constants::FILES_EDITOR_DISPLAY_NAME); + return qApp->translate("OpenWith::Editors", Constants::FILES_EDITOR_DISPLAY_NAME); } Core::IDocument *ProjectFilesFactory::open(const QString &fileName) diff --git a/src/plugins/glsleditor/glsleditorfactory.cpp b/src/plugins/glsleditor/glsleditorfactory.cpp index 397e3922411cbc039c4856bab93e0a8db6951063..c58a67c0f9c5a050774c6ce78dd85583237ad0cd 100644 --- a/src/plugins/glsleditor/glsleditorfactory.cpp +++ b/src/plugins/glsleditor/glsleditorfactory.cpp @@ -43,6 +43,7 @@ #include <coreplugin/icore.h> #include <coreplugin/editormanager/editormanager.h> +#include <QCoreApplication> #include <QFileInfo> #include <QDebug> #include <QSettings> @@ -72,7 +73,7 @@ Core::Id GLSLEditorFactory::id() const QString GLSLEditorFactory::displayName() const { - return tr(C_GLSLEDITOR_DISPLAY_NAME); + return qApp->translate("OpenWith::Editors", C_GLSLEDITOR_DISPLAY_NAME); } Core::IDocument *GLSLEditorFactory::open(const QString &fileName) diff --git a/src/plugins/imageviewer/imageviewerfactory.cpp b/src/plugins/imageviewer/imageviewerfactory.cpp index 74baf6b6012d56bb496606832883c565e39a14c3..851822b4d96447731b62480cf140bb81b82ed0c4 100644 --- a/src/plugins/imageviewer/imageviewerfactory.cpp +++ b/src/plugins/imageviewer/imageviewerfactory.cpp @@ -36,6 +36,7 @@ #include "imageviewerconstants.h" #include "imageviewer.h" +#include <QCoreApplication> #include <QMap> #include <QImageReader> #include <QtDebug> @@ -102,7 +103,7 @@ Core::Id ImageViewerFactory::id() const QString ImageViewerFactory::displayName() const { - return tr(Constants::IMAGEVIEWER_DISPLAY_NAME); + return qApp->translate("OpenWith::Editors", Constants::IMAGEVIEWER_DISPLAY_NAME); } Core::IDocument *ImageViewerFactory::open(const QString & /*fileName*/) diff --git a/src/plugins/qmljseditor/qmljseditorfactory.cpp b/src/plugins/qmljseditor/qmljseditorfactory.cpp index 42dfcabab6b7a4a7f6140ad49627b342d582e7f4..50c4bc4935a519aff00ae973a36e20e58a1070a1 100644 --- a/src/plugins/qmljseditor/qmljseditorfactory.cpp +++ b/src/plugins/qmljseditor/qmljseditorfactory.cpp @@ -46,6 +46,7 @@ #include <coreplugin/infobar.h> #include <coreplugin/editormanager/editormanager.h> +#include <QCoreApplication> #include <QFileInfo> #include <QDebug> #include <QSettings> @@ -74,7 +75,7 @@ Core::Id QmlJSEditorFactory::id() const QString QmlJSEditorFactory::displayName() const { - return tr(C_QMLJSEDITOR_DISPLAY_NAME); + return qApp->translate("OpenWith::Editors", C_QMLJSEDITOR_DISPLAY_NAME); } diff --git a/src/plugins/qt4projectmanager/profileeditorfactory.cpp b/src/plugins/qt4projectmanager/profileeditorfactory.cpp index 20dea318966e2ef76d243c6c6f521f958719e46f..47ac3af1effa994cbf4878d1565b88f769668396 100644 --- a/src/plugins/qt4projectmanager/profileeditorfactory.cpp +++ b/src/plugins/qt4projectmanager/profileeditorfactory.cpp @@ -41,6 +41,7 @@ #include <texteditor/texteditoractionhandler.h> #include <texteditor/texteditorsettings.h> +#include <QCoreApplication> #include <QFileInfo> #include <QAction> #include <QMenu> @@ -75,7 +76,7 @@ Core::Id ProFileEditorFactory::id() const QString ProFileEditorFactory::displayName() const { - return tr(Qt4ProjectManager::Constants::PROFILE_EDITOR_DISPLAY_NAME); + return qApp->translate("OpenWith::Editors", Qt4ProjectManager::Constants::PROFILE_EDITOR_DISPLAY_NAME); } Core::IDocument *ProFileEditorFactory::open(const QString &fileName) diff --git a/src/plugins/resourceeditor/resourceeditorfactory.cpp b/src/plugins/resourceeditor/resourceeditorfactory.cpp index 30f25de2e406897987bd57b42edeb7b1e0972cfa..952a9def2b681a56db0c5428ffd2af682428fe23 100644 --- a/src/plugins/resourceeditor/resourceeditorfactory.cpp +++ b/src/plugins/resourceeditor/resourceeditorfactory.cpp @@ -38,6 +38,7 @@ #include <coreplugin/fileiconprovider.h> #include <coreplugin/editormanager/editormanager.h> +#include <QCoreApplication> #include <QFileInfo> #include <qdebug.h> @@ -61,7 +62,7 @@ Core::Id ResourceEditorFactory::id() const QString ResourceEditorFactory::displayName() const { - return tr(C_RESOURCEEDITOR_DISPLAY_NAME); + return qApp->translate("OpenWith::Editors", C_RESOURCEEDITOR_DISPLAY_NAME); } Core::IDocument *ResourceEditorFactory::open(const QString &fileName) diff --git a/src/plugins/texteditor/plaintexteditorfactory.cpp b/src/plugins/texteditor/plaintexteditorfactory.cpp index 308819e11bfd947be685b5af456f14dd3c9d1ee9..ac86038ac6d507940d07a086d67a4e7c50e58cac 100644 --- a/src/plugins/texteditor/plaintexteditorfactory.cpp +++ b/src/plugins/texteditor/plaintexteditorfactory.cpp @@ -44,6 +44,7 @@ #include <coreplugin/editormanager/editormanager.h> #include <coreplugin/infobar.h> +#include <QCoreApplication> #include <QDebug> using namespace TextEditor; @@ -72,7 +73,7 @@ Core::Id PlainTextEditorFactory::id() const QString PlainTextEditorFactory::displayName() const { - return tr(Core::Constants::K_DEFAULT_TEXT_EDITOR_DISPLAY_NAME); + return qApp->translate("OpenWith::Editors", Core::Constants::K_DEFAULT_TEXT_EDITOR_DISPLAY_NAME); } Core::IDocument *PlainTextEditorFactory::open(const QString &fileName)