选择要翻译的字符串

Strings 视图列出了当前上下文中所有可翻译的字符串及其翻译接受状态。选择一个字符串,即可在翻译区域查看和编辑该字符串。

琴弦视图

单击字符串前面的图标可更改其翻译接受状态。绿色或黄色的勾号表示该字符串已接受翻译。问号表示该翻译不存在或您尚未接受该翻译。

以下图标表示每个字符串的当前翻译状态:

状态图标说明
已接受/正确源字符串有翻译(可能为空)。您已接受该翻译,并且它通过了所有验证测试。单击图标撤销对翻译的接受。如果字符串有翻译,则状态变为Not Accepted ;如果翻译为空,则状态变为No Translation 。如果lupdate 更改了字符串的内容,则其接受状态变为Not Accepted
接受/警告您接受了翻译,但它没有通过所有验证测试。Warnings 视图显示了未通过的地方。如果单击图标撤销对翻译的接受,则状态变为Validation Failures
未接受该字符串的翻译通过了所有验证测试,但您尚未接受该翻译。单击图标或按Ctrl+Enter 键接受翻译。状态变为Accepted/Correct
无翻译字符串没有翻译。如果单击图标接受空翻译,状态将变为Accepted/Correct
验证失败字符串有翻译,但翻译未通过所有验证测试。Warnings 视图会显示验证测试失败。单击图标或按Ctrl+Enter 键接受翻译,即使有验证失败。状态变为Accepted/Warnings 。通常情况下,您应该修复验证失败的原因。修复所有故障后,状态将自动变为Not Accepted
过时字符串已过时。在上下文中已不再使用。有关如何从文件中删除过时信息的说明,请参阅使用 lupdate

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