选择要翻译的上下文
Context 视图列出了要翻译的字符串出现的上下文。标有Context 的列按字母顺序列出上下文名称。每个上下文都是 QML 类型或QObject 子类的名称。
QObject 本身的上下文包含传递给静态函数QObject::tr() 的字符串。
<unnamed context>包含的字符串不属于QObject 的子类。
以下图标表示每个上下文的当前翻译状态:
状态 | 图标 | 说明 |
---|---|---|
已接受/正确 | ![]() | 上下文中的所有字符串都已翻译,且所有翻译都通过了验证测试。 |
接受/警告 | ![]() | 上下文中的所有字符串都已翻译或标记为已翻译,但至少有一个翻译未通过验证测试。在Strings 视图中,您可以看到哪个字符串未通过测试。 |
未接受 | ![]() | 上下文中至少有一个字符串未翻译或未标记为已翻译。 |
过时 | ![]() | 上下文中不再出现任何已翻译的字符串。这通常意味着上下文已不存在于应用程序中。 |
Items 列显示上下文中可翻译字符串的总数和已翻译字符串的数量,中间用斜线 (/) 分隔。如果数字相等,则上下文中的所有可翻译字符串都有翻译。
© 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.