From efbe35787fc6b9825e26d85c22faa926d21f4e5d Mon Sep 17 00:00:00 2001 From: Konstantin Tokarev Date: Sun, 6 May 2012 12:30:23 +0400 Subject: 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 Reviewed-by: Eike Ziller --- src/plugins/cppeditor/cppplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cppeditor/cppplugin.cpp') 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) -- cgit v1.2.1