W3cubDocs

/Qt 6.9

QT_I18N_TRANSLATED_LANGUAGES

List of languages to be used for project internationalization.

This variable was introduced in Qt 6.7.

Specifies a list of languages that are used for project internationalization. The single languages must be compatible with the string-based QLocale constructor.

The languages in QT_I18N_TRANSLATED_LANGUAGES are used to:

  • Set up executable targets for consuming .qm files.
  • Automatically construct .ts file names in qt_add_translations().

This variable can be conveniently set with the qt_standard_project_setup() command.

By default, translatable strings are considered to be written in en.

See also qt_standard_project_setup() and qt_add_translations().

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.9/cmake-variable-qt-i18n-languages.html