C

TranslationFiles.MCU.omitSourceLanguage

Indicates whether to include or exclude source language strings.

Description

This node can be used to either enable or disable embedding the translations in the application. If set to true, only the localized strings are included, ignoring the source language strings. It is useful when it's required to generate an application binary with a single localization file. Especially when using ID-based translations, the application is not expected to display the source strings, so it is highly recommended to enable this flag.

Usage

This property is accepted in the main application .qmlproject file, or a module .qmlproject file. It takes a boolean value, and the default value is false.

Code example:

TranslationFiles {
    MCU.omitSourceLanguage: false
}

Since

This property was introduced in QmlProject API 1.3 .

See also Qt Quick Ultralite Performance Guide.

Available under certain Qt licenses.
Find out more.