aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/tutorials/basictutorial
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-02-09 13:07:34 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-02-12 13:15:46 +0100
commit34c4dab7cf68450959383240a68433b979aba821 (patch)
treecc55319626e847e40ce627d0be96e0dc0d6a0a29 /sources/pyside6/doc/tutorials/basictutorial
parent6b5622f44b32c6808f4de2456744f81391c24235 (diff)
pyside6-project: Add a command for running lupdate
[ChangeLog][PySide6] pyside6-project now has an lupdate mode updating translation files (.ts) from the sources. Change-Id: I853e55455fff2c0c22a7099c650e4bd3b2fc52c4 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'sources/pyside6/doc/tutorials/basictutorial')
-rw-r--r--sources/pyside6/doc/tutorials/basictutorial/translations.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/pyside6/doc/tutorials/basictutorial/translations.rst b/sources/pyside6/doc/tutorials/basictutorial/translations.rst
index ce28cb5dc..21c16cdcd 100644
--- a/sources/pyside6/doc/tutorials/basictutorial/translations.rst
+++ b/sources/pyside6/doc/tutorials/basictutorial/translations.rst
@@ -54,6 +54,14 @@ they should be passed to the ``pyside6-lupdate`` tool as well:
The source files generated by ``pyside6-uic`` from the form files
should **not** be passed.
+The ``lupdate`` mode of ``pyside6-project`` can also be used for this. It
+collects all source files and runs ``pyside6-lupdate`` when ``.ts`` file(s)
+are given in the ``.pyproject`` file:
+
+.. code-block:: bash
+
+ pyside6-project lupdate .
+
``.ts`` files are translated using *Qt Linguist*. Once this is complete,
the files are converted to a binary form (``.qm`` files):