qt_i18n_source_language

指定可翻译字符串的语言。

此变量在 Qt 6.7 中引入。

指定源代码中可翻译字符串的语言。该语言必须与基于字符串的QLocale 构造函数兼容。

QT_I18N_TRANSLATED_LANGUAGES 一起,此变量用于为qt_add_translations() 确定.ts 文件的名称。

这个变量可以通过qt_standard_project_setup()命令方便地设置。

另请参阅 qt_standard_project_setup()qt_add_translations()

© 2025 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.