summaryrefslogtreecommitdiff
path: root/src/plugins/designer
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/designer
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/designer')
-rw-r--r--src/plugins/designer/formeditorfactory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/designer/formeditorfactory.cpp b/src/plugins/designer/formeditorfactory.cpp
index 87bbb5fbcc..323d15c0f3 100644
--- a/src/plugins/designer/formeditorfactory.cpp
+++ b/src/plugins/designer/formeditorfactory.cpp
@@ -44,6 +44,7 @@
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/modemanager.h>
+#include <QCoreApplication>
#include <QFileInfo>
#include <QDebug>
@@ -68,7 +69,7 @@ Core::Id FormEditorFactory::id() const
QString FormEditorFactory::displayName() const
{
- return tr(C_DESIGNER_XML_DISPLAY_NAME);
+ return qApp->translate("Designer", C_DESIGNER_XML_DISPLAY_NAME);
}
Core::IDocument *FormEditorFactory::open(const QString &fileName)