Qt Linguist Manual

All topics

Arrow Pad Example

Line by Line Walkthrough

Translating to French and Dutch

Exercises

Creating translation files

Developers

Examples

Hello tr() Example

Line by Line Walkthrough

Running the Application in English

Creating a Latin Message File

Translating to Latin with Qt Linguist

Running the Application in Latin

I18N Example

QT_EXCLUDE_FROM_TRANSLATION

directory property QT_EXCLUDE_FROM_TRANSLATION

Examples

QT_EXCLUDE_FROM_TRANSLATION

target property QT_EXCLUDE_FROM_TRANSLATION

Examples

QT_EXCLUDE_SOURCES_FROM_TRANSLATION

Examples

Qt Linguist Manual

Qt Linguist

Qt Linguist user interface

Release managers

Reusing translations

Batch translation

Creating and editing phrase books

Selecting context to translate

Selecting strings to translate

String Translation States

TS file format

Text ID based translations

Internationalizing with text IDs

Localizing with text IDs

CMake configuration

Advanced use with qmake

Translating multiple languages simultaneously

multiple languages

Translating strings

Moving between translatable strings

Phrases that require multiple translations depending on context

Changing keyboard shortcuts

Alt key shortcuts

Ctrl key shortcuts

Handling numbered arguments and plural forms

Changing the target locale

Translators

Troll Print Example

Line by Line Walkthrough

Running Troll Print 1.0 in English and in Portuguese

Troll Print 1.1

Using lconvert

lconvert syntax

lconvert options

Examples

Convert TS file to XLIFF

Merge multiple QM files

Using lconvert with CMake

Using lrelease

lrelease syntax

lrelease options

Examples

Using lrelease with CMake

Using lrelease with qmake

Using lupdate

lupdate syntax

lupdate options

Examples

Using lupdate with CMake

Using lupdate with qmake

XLIFF format files

Validating translations

Viewing strings in context

qt_add_lrelease

qt6_add_lrelease

Synopsis

Description

Options

Location of generated .qm files

Processing Generated .qm Files

Build by Default

Umbrella Target

Merging Qt-provided translations

Deprecated Command Signature

Examples

qt_add_lupdate

qt6_add_lupdate

Synopsis

Description

Sources and Include Directories

Options

Umbrella Target

Plural Forms

Deprecated Command Signature

Examples

qt_add_translation

qt6_add_translation

Synopsis

Description

Options

Examples

qt_add_translations

qt6_add_translations

Synopsis

Description

Sources and Include Directories

Automatic Determination of .ts File Paths

Plural Forms

Options

Location of generated .qm files

Embedding Generated .qm Files in Resources

qt_add_translations before Qt 6.7

Merging Qt-provided translations

Examples

Excluding directories, targets, and sources

Explicit specification of source targets

Custom resource prefix

Installing .qm files

Influencing the names of the .ts files

qt_collect_translation_source_targets

qt6_collect_translation_source_targets

Synopsis

Description

Excluding targets from translation

When to call this command

Examples

qt_create_translation

qt6_create_translation

Synopsis

Description

Options

Examples

CMake Commands in Qt6 LinguistTools

CMake Directory Properties in Qt6 LinguistTools

CMake Target Properties in Qt6 LinguistTools

Qt Linguist Examples