Update Qt translation files

To update all TS or QM files for a project, go to Qt > lupdate All .ts Files for Project or lrelease All .ts Files for Project in the context menu for the project.

Run translation tools during builds

To run lupdate or lrelease when you build a project:

  1. In Solution Explorer, right-click the project and select Qt > Qt Project Settings in the context menu.
  2. Select Configuration Properties > Qt Translation > General.
  3. In Run Translation Tool During Build, select the tools to run.

    {Qt Translation properties}

Note: The Qt Translation properties are shown only if the project has translation files.

Set lupdate properties

To set properties for running lupdate for a project:

  1. In Solution Explorer, right-click the project and select Qt > Qt Project Settings in the context menu.
  2. Select Configuration Properties > Qt Translation > lupdate.

    {lupdate properties}

  3. Select a property to see its description.

For a list of properties that you can set in AdditionalOptions, see lupdate options.

Set lrelease properties

To set properties for running lrelease for a project:

  1. In Solution Explorer, right-click the project and select Qt > Qt Project Settings in the context menu.
  2. Select Configuration Properties > Qt Translation > lrelease.

    {lrelease properties}

  3. Select a property to see its description.

For a list of properties that you can set in AdditionalOptions, see lrelease options.

See also Create Qt translation files, Start Qt Linguist, Internationalization with Qt, and Qt Linguist Manual.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.