在上下文中查看字符串

Qt Linguist can access the source files containing the translatable strings, the Sources and Forms view shows the source context of the current string in the Strings view. It highlights the source code line that contains the current string. If Qt Linguist cannot find the source file, it shows the expected absolute file path.

If the source context shows the wrong source line, the translation file might be out of sync with the source files. For more information about how to sync the files, see 使用 lupdate .

Qt Designer 将 UI 表单存储在 .ui 特殊 UI 文件中。 Qt Linguist 试图以表单形式展示翻译。