支持文件类型 (Strings)

.QPH - Qt Phrase Book (Strings)

文本由 Phrase Language AI 从英语机器翻译而得。

文件扩展名 

.qph

API 扩展 

qph

导入 

导出 

复数形式支持 

描述支持 

Qt 术语表是一个基于 XML 的文件格式,用于 Qt 译员填充预翻译的内容。其单元元素是 <phrase>,具有嵌套 <source><target> 元素。

Qt 术语表 (.QPH) 与 Qt 翻译源 (.TS) 不同,因为 .QPH 是一个术语表,而 .TS 是一个交换文件格式。 .TS 被 Qt 应用程序用于将本地化内容加载到软件中,而 .QPH 在 Qt 译员中作为术语库。

代码示例

<!DOCTYPE QPH>
<QPH language="en-GB">
  <phrase>
    <source>boolean_key</source>
    <target>--- 真
</target>
  </phrase>
  <phrase>
    <source>empty_string_translation</source>
    <target/>
  </phrase>
  <phrase>
    <source>key_with_description</source>
    <target>对这个键非常重要的描述!(至少在某些格式中)</target>
  </phrase>
  <phrase>
    <source>key_with_line-break</source>
    <target>这些翻译包含
a line-break.</target>
  </phrase>
  <phrase>
    <source>nested.deeply.key</source>
    <target>哇,这个键嵌套得更深了。</target>
  </phrase>
  <phrase>
    <source>nested.key</source>
    <target>这个键嵌套在一个命名空间内。</target>
  </phrase>
  <phrase>
    <source>null_translation</source>
    <target/>
  </phrase>
  <phrase>
    <source>pluralized_key_one</source>
    <target>只找到一只小猫。</target>
  </phrase>
  <phrase>
    <source>pluralized_key_other</source>
    <target>哇,你有 %s 只小猫!</target>
  </phrase>
  <phrase>
    <source>pluralized_key_zero</source>
    <target>你没有小猫。</target>
  </phrase>
  <phrase>
    <source>sample_collection</source>
    <target>---
- first item
- second item
- third item
</target>
  </phrase>
  <phrase>
    <source>simple_key</source>
    <target>简单键,简单消息,如此简单。</target>
  </phrase>
  <phrase>
    <source>unverified_key</source>
    <target>这个翻译尚未验证,正在等待验证。</target>(在某些格式中,我们也导出此状态)</target>
  </phrase>
</QPH>
这篇文章有帮助吗?

Sorry about that! In what way was it not helpful?

The article didn’t address my problem.
I couldn’t understand the article.
The feature doesn’t do what I need.
Other reason.

Note that feedback is provided anonymously so we aren't able to reply to questions.
If you'd like to ask a question, submit a request to our Support team.
Thank you for your feedback.