重复使用翻译

如果翻译文本与源文本相似,请选择Translation >Copy from source text (或按Ctrl+B)将源文本复制到翻译区域。

短语集提供了一套通用翻译,有助于确保翻译的一致性。短语集是一组源短语、目标(翻译)短语和可选定义。通常情况下,每种语言和每个应用程序系列创建一个短语集。短语集包含一个应用程序系列的翻译,因此可以避免重复劳动。

Phrases and guesses 视图显示当前字符串及其短语集翻译。如果当前字符串与已翻译的字符串相同或相似,该视图也会列出该字符串及其翻译。

要将Phrases and guesses 视图中的翻译复制到翻译区域,请双击该翻译或选中该翻译并按Enter 键

批量翻译

使用批量翻译功能可自动翻译短语集中的源文本。要配置在批量翻译过程中以何种顺序使用哪些短语集,请选择Edit >Batch Translation 。您可以只包含当前没有翻译的词条,并将批量翻译的词条标记为Accepted

创建和编辑短语集

短语集文件是人类可读的 XML 文件,包含标准短语及其翻译。Qt Linguist 创建并更新这些文件。您可以在任何项目和应用程序中使用它们。

要创建新的短语集,请选择Phrases >New Phrase Book

要打开短语集,请选择Phrases >Open Phrase Book ,然后选择要打开的 Qt XML 短语集文件 (.qph) 。

要查看和更改已打开的短语集,请选择Phrases >Edit Phrase Book

要添加新短语,请选择New Entry (或按Alt+N),然后键入新的源短语、翻译和可选定义。这有助于区分同一源短语的不同翻译。

要将正在处理的译文添加到当前短语集,请选择Phrases >Add to Phrase Book 或按Ctrl+T。如果加载了多个短语集,则必须选择其中一个。

如果在Phrases and guesses 视图中发现短语集条目有错误,可以右击该条目并选择Edit 进行编辑。修正错误后按Enter 键离开编辑模式。

要删除短语,请在Source phrase 列表中选择该短语,然后选择Remove Entry

要打印打开的短语集,请选择Phrases >Print Phrase Book

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