aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/tutorials/basictutorial
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-01-13 11:21:36 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-01-13 14:50:01 +0100
commitbb46bd69207e7ad3479d0b89750385a294144174 (patch)
treed509edea9c4e555a06e6ee3086074733a89a088d /sources/pyside6/doc/tutorials/basictutorial
parent8214741d0c9e74968e50f84f2210c8ef58bb1ecf (diff)
Documentation: Mention that .ui/.qml files should be passed to lupdate
Task-number: PYSIDE-1774 Task-number: PYSIDE-1717 Pick-to: 6.2 Change-Id: I7aa2a39e3d768fcbbec953720c8e89824df9f916 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/doc/tutorials/basictutorial')
-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):