- Qt Creator Manual
- Use Qt Linguist
- Qt Creator Manual 13.0.0-beta1

How To

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

How To