Fix missing translations in Python Editor.

Add misssing macros, fix capitalization.

Task-number: QTCREATORBUG-9541

Change-Id: I9e3c3d0f527e444f2f27e5656576bb09d256badc
Reviewed-by: Sergey Shambir <sergey.shambir.auto@gmail.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Friedemann Kleint
2013-06-14 08:58:29 +02:00
parent bba1b0932a
commit f696b8d9ac
2 changed files with 8 additions and 8 deletions

View File

@@ -52,21 +52,21 @@ const char C_PY_SOURCE_CONTENT[] =
"#!/usr/bin/env python\n" "#!/usr/bin/env python\n"
"# -*- coding: utf-8 -*-\n" "# -*- coding: utf-8 -*-\n"
"\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[] = 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 // class
const char C_PY_CLASS_WIZARD_ID[] = "P.PyClass"; 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[] = const char EN_PY_CLASS_DESCRIPTION[] =
"Creates new Python class"; QT_TRANSLATE_NOOP("PythonEditor::ClassWizard", "Creates new Python class");
// For future: boost binding // For future: boost binding
const char C_PY_CPPMODULE_WIZARD_ID[] = "F.PyCppModule"; 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[] = 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 * MIME type

View File

@@ -53,9 +53,9 @@ static const Core::BaseFileWizardParameters GetDefaultParams()
p.setCategory(QLatin1String(Constants::C_PY_WIZARD_CATEGORY)); p.setCategory(QLatin1String(Constants::C_PY_WIZARD_CATEGORY));
p.setDisplayCategory(QLatin1String(Constants::C_PY_DISPLAY_CATEGORY)); p.setDisplayCategory(QLatin1String(Constants::C_PY_DISPLAY_CATEGORY));
p.setDisplayName( p.setDisplayName(
QObject::tr(Constants::EN_PY_SOURCE_DISPLAY_NAME)); FileWizard::tr(Constants::EN_PY_SOURCE_DISPLAY_NAME));
p.setDescription( p.setDescription(
QObject::tr(Constants::EN_PY_SOURCE_DESCRIPTION)); FileWizard::tr(Constants::EN_PY_SOURCE_DESCRIPTION));
return p; return p;
} }