C
qul_target_embed_translations
Warning: This CMake command is deprecated since 2.4, consider using TranslationFiles.files instead.
Embeds translations from the .ts
files.
Synopsis
qul_target_embed_translations(<target> ts_file1 [ts_file2 ...] [OMIT_SOURCE_LANGUAGE])
Description
Embeds the translations from the given .ts
files in the resulting binary. Each file defines a language. The name of the language is the string between the last and second to last dot in the filename. For example: translation.fr.ts
defines translations for "fr" (French).
This function also creates an update_translations
target, which creates or updates the source .ts
files based on the translated strings in the source QML files.
Options
The optional OMIT_SOURCE_LANGUAGE
flag removes the untranslated strings from the binary. The first .ts
file defines the new default language.
Examples
qul_target_embed_translations(example_app translation.nb_NO.ts translation.lv_LV.ts)
Since
This command was introduced in Qt Quick Ultralite 1.0.
See also Internationalization and Localization with Qt Quick Ultralite.
Available under certain Qt licenses.
Find out more.