在上下文中查看字符串
如果Qt Linguist 能访问包含可翻译字符串的源文件,则在Strings 视图中,Sources and Forms 视图会显示当前字符串的源代码上下文。它会突出显示包含当前字符串的源代码行。如果Qt Linguist 无法找到源文件,则会显示预期的绝对文件路径。
如果源上下文显示的源代码行有误,可能是翻译文件与源文件不同步。有关如何同步文件的更多信息,请参阅《使用 lupdate》。
Qt Widgets Designer 将 UI 表单存储在特殊的 UI 文件(.ui)中。Qt Linguist 会尝试在表单中显示这些翻译。
© 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.