forked from qt-creator/qt-creator
Python: Use double quotes for emphasis
And write Python with an initial capital letter and UI with all caps. Change-Id: I5c7a85aa4ae9e5af1f4cc66e8705db126fbec23b Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -64,7 +64,7 @@ bool PythonWizardPageFactory::validateData(Id typeId, const QVariant &data, QStr
|
||||
|
||||
if (items.isEmpty()) {
|
||||
if (errorMessage) {
|
||||
*errorMessage = Tr::tr("'data' of a Python wizard page expects a map with 'items' "
|
||||
*errorMessage = Tr::tr("\"data\" of a Python wizard page expects a map with \"items\" "
|
||||
"containing a list of objects.");
|
||||
}
|
||||
return false;
|
||||
@@ -73,9 +73,9 @@ bool PythonWizardPageFactory::validateData(Id typeId, const QVariant &data, QStr
|
||||
if (!Utils::allOf(items, &validItem)) {
|
||||
if (errorMessage) {
|
||||
*errorMessage = Tr::tr(
|
||||
"An item of Python wizard page data expects a 'trKey' field containing the ui "
|
||||
"visible string for that python version and an field 'value' containing an object "
|
||||
"with a 'PySideVersion' field used for import statements in the python files.");
|
||||
"An item of Python wizard page data expects a \"trKey\" field containing the UI "
|
||||
"visible string for that Python version and a \"value\" field containing an object "
|
||||
"with a \"PySideVersion\" field used for import statements in the Python files.");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user