QT_I18N_SOURCE_LANGUAGE
指定可翻译字符串的语言。
该变量自 Qt 6.7 起引入。
指定源代码中可翻译字符串的语言。该语言必须与基于字符串的QLocale 构造函数兼容。
该变量与QT_I18N_TRANSLATED_LANGUAGES 配合使用,用于确定qt_add_translations()所用.ts 文件的名称。
可以通过qt_standard_project_setup()命令方便地设置此变量。
© 2026 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.