diff options
author | Konstantin Tokarev <annulen@yandex.ru> | 2012-05-06 12:30:23 +0400 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2012-05-07 11:39:01 +0200 |
commit | efbe35787fc6b9825e26d85c22faa926d21f4e5d (patch) | |
tree | 58065b2acb2201de0febe445ee73ff03e17c6be0 /src/plugins/qmljseditor | |
parent | 077c7741f63cab9c09beee0a432f95ea8afb5f46 (diff) | |
download | qt-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/qmljseditor')
-rw-r--r-- | src/plugins/qmljseditor/qmljseditorfactory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmljseditor/qmljseditorfactory.cpp b/src/plugins/qmljseditor/qmljseditorfactory.cpp index 42dfcabab6..50c4bc4935 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); } |