- Qt 6.9
- Qt Core
- CMake Variables in Qt6 Core
- QT_I18N_SOURCE_LANGUAGE
- Qt 6.9.3 Reference Documentation

# QT_I18N_SOURCE_LANGUAGE

Specifies the language of translatable strings.

This variable was introduced in Qt 6.7.

Specifies the language of translatable strings in the source code. The language must be compatible with the string-based QLocale constructor.

Together with `QT_I18N_TRANSLATED_LANGUAGES`, this variable is used to determine the names of `.ts` files for qt_add_translations().

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

See also qt_standard_project_setup() and qt_add_translations().