summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cppplugin.cpp
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/cppeditor/cppplugin.cpp
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/cppeditor/cppplugin.cpp')
-rw-r--r--src/plugins/cppeditor/cppplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cppplugin.cpp b/src/plugins/cppeditor/cppplugin.cpp
index ca3476bd40..920c954696 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)