From 77558abc3203348636268c5881b3574ac8eeb954 Mon Sep 17 00:00:00 2001 From: Robert Loehning <robert.loehning@nokia.com> Date: Wed, 16 Jun 2010 17:30:18 +0200 Subject: [PATCH] Fixed translation of "Projects" Reviewed-by: dt --- src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp | 4 +++- src/plugins/projectexplorer/projectexplorersettingspage.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp index 0ef46a5f647..3a4cc432bbe 100644 --- a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp @@ -37,6 +37,7 @@ #include <projectexplorer/environment.h> #include <qtconcurrent/QtConcurrentTools> #include <QtCore/QtConcurrentRun> +#include <QtCore/QCoreApplication> #include <QtCore/QSettings> #include <QtGui/QFormLayout> #include <QtGui/QBoxLayout> @@ -255,7 +256,8 @@ QString CMakeSettingsPage::category() const QString CMakeSettingsPage::displayCategory() const { - return tr(ProjectExplorer::Constants::PROJECTEXPLORER_SETTINGS_TR_CATEGORY); + return QCoreApplication::translate("ProjectExplorer", + ProjectExplorer::Constants::PROJECTEXPLORER_SETTINGS_TR_CATEGORY); } QIcon CMakeSettingsPage::categoryIcon() const diff --git a/src/plugins/projectexplorer/projectexplorersettingspage.cpp b/src/plugins/projectexplorer/projectexplorersettingspage.cpp index db70b96890a..806b9b4570c 100644 --- a/src/plugins/projectexplorer/projectexplorersettingspage.cpp +++ b/src/plugins/projectexplorer/projectexplorersettingspage.cpp @@ -36,6 +36,7 @@ #include <coreplugin/filemanager.h> #include <QtGui/QLabel> +#include <QtCore/QCoreApplication> namespace ProjectExplorer { namespace Internal { @@ -136,7 +137,8 @@ QString ProjectExplorerSettingsPage::category() const QString ProjectExplorerSettingsPage::displayCategory() const { - return tr(Constants::PROJECTEXPLORER_SETTINGS_TR_CATEGORY); + return QCoreApplication::translate("ProjectExplorer", + Constants::PROJECTEXPLORER_SETTINGS_TR_CATEGORY); } QIcon ProjectExplorerSettingsPage::categoryIcon() const -- GitLab