在上下文中查看字符串

如果Qt Linguist 可以访问包含可翻译字符串的源文件,则Sources and Forms 视图会在Strings 视图中显示当前字符串的源上下文。它会突出显示包含当前字符串的源代码行。如果Qt Linguist 无法找到源文件,则会显示预期的绝对文件路径。

如果源上下文显示了错误的源代码行,则翻译文件可能与源文件不同步。有关如何同步文件的更多信息,请参阅使用 lupdate

Qt Widgets Designer 在特殊的 UI 文件(.ui)中存储 UI 表单。 会尝试在表单中显示翻译。Qt Linguist

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