aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/tools/pyside-lupdate.rst
blob: 1c0d73c159266eb2e459b454d1433580089df24f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.. _pyside6-lupdate:

pyside6-lupdate
===============

.. note:: This tool is automatically called by :ref:`pyside6-project`
   so you don't need to call it manually.

``pyside6-lupdate`` is a command line tool wrapping `lupdate`_. It finds
translatable strings in Python, ``.ui``, and ``.qml`` files and generates or
updates ``.ts`` files (see :ref:`translations`).

Usage
-----

To create or update the ``.ts`` file of the :ref:`qt-linguist-example`,
run:

.. code-block:: bash

    pyside6-lupdate main.py main.qml form.ui -ts example_de.ts

.. _`lupdate`: https://doc.qt.io/qt-6/linguist-lupdate.html