Use Qt Linguist

When you create a new project, you can automatically generate a translation source file (TS) for one language. You can add other languages later by editing the project file.

To open TS files in Qt Linguist, right-click a TS file in the Projects or File System view and select Open With > Qt Linguist in the context menu. For more information about Qt Linguist, see Qt Linguist Manual.

Use lupdate and lrelease

You can use the Qt Linguist release manager tools, lupdate and lrelease, directly from Qt Creator. The lupdate tool synchronizes source code and translations. The lrelease tool creates run-time translation files for use by the released application.

Note: Running the tools from Qt Creator is supported only when using qmake as the build system. For more information about using the tools with CMake, see Qt6::LinguistTools.

By default, the project .pro file is passed to the tools as an argument. To specify other command-line arguments for the tools, select Tools > External > Configure.

Synchronize TS files

To synchronize TS files from a translator with the application code, select Tools > External > Linguist > Update Translations (lupdate).

Generate QM files

To generate from the TS files Qt message (QM) files that can be used by an application, select Tools > External > Linguist > Release Translations (lrelease).

See also Use external tools.

© 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.