diff --git a/src/plugins/pythoneditor/pythoneditorconstants.h b/src/plugins/pythoneditor/pythoneditorconstants.h index fe377a97d3c..4674bfd0f27 100644 --- a/src/plugins/pythoneditor/pythoneditorconstants.h +++ b/src/plugins/pythoneditor/pythoneditorconstants.h @@ -52,21 +52,21 @@ const char C_PY_SOURCE_CONTENT[] = "#!/usr/bin/env python\n" "# -*- coding: utf-8 -*-\n" "\n"; -const char EN_PY_SOURCE_DISPLAY_NAME[] = "Python source file"; +const char EN_PY_SOURCE_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("PythonEditor::FileWizard", "Python source file"); const char EN_PY_SOURCE_DESCRIPTION[] = - "Creates an empty python script with utf-8 charset"; + QT_TRANSLATE_NOOP("PythonEditor::FileWizard", "Creates an empty Python script with UTF-8 charset"); // class const char C_PY_CLASS_WIZARD_ID[] = "P.PyClass"; -const char EN_PY_CLASS_DISPLAY_NAME[] = "Python class"; +const char EN_PY_CLASS_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("PythonEditor::ClassWizard", "Python class"); const char EN_PY_CLASS_DESCRIPTION[] = - "Creates new Python class"; + QT_TRANSLATE_NOOP("PythonEditor::ClassWizard", "Creates new Python class"); // For future: boost binding const char C_PY_CPPMODULE_WIZARD_ID[] = "F.PyCppModule"; -const char EN_PY_CPPMODULE_DISPLAY_NAME[] = "C++ module for Python"; +const char EN_PY_CPPMODULE_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("PythonEditor::ClassWizard", "C++ module for Python"); const char EN_PY_CPPMODULE_DESCRIPTION[] = - "Creates C++/boost file with bindings for python"; + QT_TRANSLATE_NOOP("PythonEditor::ClassWizard", "Creates C++/Boost file with bindings for Python"); /******************************************************************************* * MIME type diff --git a/src/plugins/pythoneditor/wizard/pythonfilewizard.cpp b/src/plugins/pythoneditor/wizard/pythonfilewizard.cpp index c14e2668a0c..8d3314c42f4 100644 --- a/src/plugins/pythoneditor/wizard/pythonfilewizard.cpp +++ b/src/plugins/pythoneditor/wizard/pythonfilewizard.cpp @@ -53,9 +53,9 @@ static const Core::BaseFileWizardParameters GetDefaultParams() p.setCategory(QLatin1String(Constants::C_PY_WIZARD_CATEGORY)); p.setDisplayCategory(QLatin1String(Constants::C_PY_DISPLAY_CATEGORY)); p.setDisplayName( - QObject::tr(Constants::EN_PY_SOURCE_DISPLAY_NAME)); + FileWizard::tr(Constants::EN_PY_SOURCE_DISPLAY_NAME)); p.setDescription( - QObject::tr(Constants::EN_PY_SOURCE_DESCRIPTION)); + FileWizard::tr(Constants::EN_PY_SOURCE_DESCRIPTION)); return p; }