Qt Linguist Manual

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

Creating translation files

Text ID based translations

Internationalizing with text IDs

Localizing with text IDs

Grouping ID-Based Translations

CMake configuration

Advanced use with qmake

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

Release managers

Examples

Developers

Reusing translations

Batch translation

Creating and editing phrase books

Selecting context or label to translate

Selecting strings to translate

String Translation States

All topics

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

Handling numeric character references (NCR) in translations

Changing the target locale

Translators

TS file format

Qt Linguist user interface

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

Qt Linguist Manual

Qt Linguist

Arrow Pad Example

Line by Line Walkthrough

Translating to French and Dutch

Exercises

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

Localized Clock Example

User Interface

Internationalization

Implementation

CMakeLists.txt

main.cpp

Main.qml

Localized Clock with ID-based Translation

User Interface

ID-based Translation

Implementation

CMakeLists.txt

main.cpp

Time Zone Dialog

Time Zone Manager

Main.qml

Localized Clock with Runtime Language Switch

User Interface

Implementation

CMakeLists.txt

main.cpp

Translator Manager (translator.h, translator.cpp)

Updating Translations at Runtime

Updating Date and Time Formats

Main.qml

Troll Print Example

Line by Line Walkthrough

Running Troll Print 1.0 in English and in Portuguese

Troll Print 1.1

CMake Commands in Qt6 LinguistTools

CMake Directory Properties in Qt6 LinguistTools

CMake Target Properties in Qt6 LinguistTools

Qt Linguist Examples