验证翻译
Qt Linguist 为翻译提供了以下验证测试:
- “加速器”验证可检测源短语中包含“&”符号而译文中缺失的情况,反之亦然。
- 标点符号验证会检测源短语与翻译短语之间结尾标点符号的差异,当这种差异可能产生重要影响时。例如,如果源短语以省略号、感叹号或问号结尾,而翻译短语没有,或者反之,系统会发出警告。
- 短语验证会检测源短语是否同时存在于短语库中,但其翻译与短语库中的翻译不一致。
- 占位符验证用于检测源文本和翻译中是否同时出现了相同的变量(如
%1、%2)。
要打开或关闭验证测试,请选择“Validation ”或使用工具栏按钮。
在“Strings ”视图中,未通过验证测试的未接受字符串会标有Validation Failures 图标。接受的字符串则标有Accepted/Warnings 。
如果您先关闭验证功能,随后又重新启用,Qt Linguist 将重新检查所有短语,并标记任何未通过验证的短语。
“Warnings ”视图会列出未通过当前验证测试的字符串。第一个警告也会显示在主窗口底部的状态栏中。
注意:仅 报告当前有效验证测试的结果。
© 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.