选择待翻译的字符串

“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》。

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