在Qt Linguist

设计应用程序中打开 TS 文件,以便在不进行工程更改的情况下将其适配到各种语言和地区。将 UI 文本标记为可翻译,以创建包含字符串的 Qt 翻译源 (TS) 文件,并开始 Qt Linguist 进行翻译。

要在Qt Linguist 中打开TS文件:

  1. 进入Explorer ,并选择一个.ts文件。
  2. 进入Command Palette ,然后选择 Qt: Open current file in Qt Linguist。
  3. 使用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.