验证翻译
Qt Linguist 为翻译提供以下验证测试:
- 加速验证可检测源短语中没有标点符号的翻译短语,反之亦然。
- 标点符号验证会检测源短语和翻译短语之间终止标点符号的差异,如果这种差异可能很大。例如,如果源短语以省略号、感叹号或问号结束,而翻译短语没有,则会发出警告,反之亦然。
- 短语验证可检测短语本中也有的源短语,但其译文与短语本中的不同。
- 位置标记验证可检测源文本和译文中是否出现了相同的变量(如
%1
,%2
)。
要打开或关闭验证测试,请选择Validation 或使用工具栏按钮。
未通过验证测试的字符串会在Strings 视图中标上Validation Failures 图标。已接受的字符串会以Accepted/Warnings 标记。
如果先关闭验证,然后再打开,Qt Linguist 会重新检查所有短语,并标出未通过验证的短语。
Warnings 视图列出了未通过当前验证测试的字符串。第一个警告也会显示在主窗口底部的状态栏中。
注意: 只报告活动验证测试的结果。
© 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.