summaryrefslogtreecommitdiff
path: root/src/plugins/glsleditor
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2012-05-06 12:30:23 +0400
committerEike Ziller <eike.ziller@nokia.com>2012-05-07 11:39:01 +0200
commitefbe35787fc6b9825e26d85c22faa926d21f4e5d (patch)
tree58065b2acb2201de0febe445ee73ff03e17c6be0 /src/plugins/glsleditor
parent077c7741f63cab9c09beee0a432f95ea8afb5f46 (diff)
downloadqt-creator-efbe35787fc6b9825e26d85c22faa926d21f4e5d.tar.gz
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>
Diffstat (limited to 'src/plugins/glsleditor')
-rw-r--r--src/plugins/glsleditor/glsleditorfactory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/glsleditor/glsleditorfactory.cpp b/src/plugins/glsleditor/glsleditorfactory.cpp
index 397e392241..c58a67c0f9 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)