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 构造函数。
连同
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() 命令。
另请参阅 qt_standard_project_setup() and qt_add_translations() .