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:
Konstantin Tokarev
2012-05-06 12:30:23 +04:00
committed by Eike Ziller
parent 077c7741f6
commit efbe35787f
10 changed files with 20 additions and 10 deletions

View File

@@ -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)