summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-06-14 08:58:29 +0200
committerFriedemann Kleint <Friedemann.Kleint@digia.com>2013-06-14 09:54:25 +0200
commitf696b8d9acbc073c29e449c1ada5feeb7ed0ac43 (patch)
tree2c6ddc526e5581436d411e398952caf58dfd5eff
parentbba1b0932a381336e77c30b39e0a39a00e6cf172 (diff)
downloadqt-creator-f696b8d9acbc073c29e449c1ada5feeb7ed0ac43.tar.gz
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>
-rw-r--r--src/plugins/pythoneditor/pythoneditorconstants.h12
-rw-r--r--src/plugins/pythoneditor/wizard/pythonfilewizard.cpp4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorconstants.h b/src/plugins/pythoneditor/pythoneditorconstants.h
index fe377a97d3..4674bfd0f2 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 c14e2668a0..8d3314c42f 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;
}