forked from qt-creator/qt-creator
Translate editor display names in correct context.
These strings were internationalized long ago, but wrong context prevented them from being actually tranlated in GUI. This patch won't break anything - if these strings were not translated for particular language, they stay untranslated, but if they were, translations are used (e.g. for RU). Change-Id: I175e29e8b0cee2bff9306623dad4a5956db69288 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
committed by
Eike Ziller
parent
077c7741f6
commit
efbe35787f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user