From 7da84e1734a35758da1639379e8d80550046a4b9 Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Mon, 19 Jun 2023 11:37:18 +0200 Subject: [PATCH] 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 --- src/plugins/python/pythonwizardpage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/python/pythonwizardpage.cpp b/src/plugins/python/pythonwizardpage.cpp index 253422ed20c..2216dbfa574 100644 --- a/src/plugins/python/pythonwizardpage.cpp +++ b/src/plugins/python/pythonwizardpage.cpp @@ -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; }