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

pyside6-lrelease
================

.. note:: This tool is automatically called by :ref:`pyside6-project`
   so you don't need to call it manually. *Qt Creator* will take care
   of this step as well while executing a project.

``pyside6-lrelease`` is a command line tool wrapping `lrelease`_. It produces
``.qm`` files out of ``.ts`` files. The ``.qm`` file format is a compact binary
format that the localized application uses. It provides extremely fast lookup
for translations (see :ref:`translations`).

Usage
-----

To convert a ``.ts`` file of the :ref:`qt-linguist-example`
into its binary representation, run:

.. code-block:: bash

    pyside6-lrelease example_de.ts -qm example_de.qm

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