aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-01-13 11:21:36 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-15 14:43:21 +0000
commit503b90cf87bec4f342347eee637a9a86e3c5f694 (patch)
treebd852c1304fdc8db02b81292d7dfb965774d4833
parent1038dabf4848f18c04b228e651778827b525c0f3 (diff)
Documentation: Mention that .ui/.qml files should be passed to lupdate
Task-number: PYSIDE-1774 Task-number: PYSIDE-1717 Change-Id: I7aa2a39e3d768fcbbec953720c8e89824df9f916 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit bb46bd69207e7ad3479d0b89750385a294144174) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--sources/pyside6/doc/tutorials/basictutorial/translations.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/sources/pyside6/doc/tutorials/basictutorial/translations.rst b/sources/pyside6/doc/tutorials/basictutorial/translations.rst
index 544218553..31cd004a3 100644
--- a/sources/pyside6/doc/tutorials/basictutorial/translations.rst
+++ b/sources/pyside6/doc/tutorials/basictutorial/translations.rst
@@ -44,6 +44,16 @@ producing XML-based ``.ts`` files:
If ``example_de.ts`` already exists, it will be updated with the new
messages added to the code in-between.
+If there are form files (``.ui``) and/or QML files (``.qml``) in the project,
+they should be passed to the ``pyside6-lupdate`` tool as well:
+
+.. code-block:: bash
+
+ pyside6-lupdate main.py main.qml form.ui -ts example_de.ts
+
+The source files generated by ``pyside6-uic`` from the form files
+should `not` be passed.
+
``.ts`` files are translated using *Qt Linguist*. Once this is complete,
the files are converted to a binary form (``.qm`` files):