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().

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.