サポートするファイル形式(Strings)

.QPH - Qt Phrase Book (Strings)

本コンテンツはPhrase Language AIの機械翻訳により、英語から翻訳されています。

ファイル拡張子 

.qph

API拡張 

qph

インポート 

はい

エクスポート 

はい

複数形のサポート 

いいえ

説明のサポート 

いいえ

Qt Phrase Bookは、Qt リンギストが事前に翻訳されたコンテンツを入力するために使用するXMLベースのファイル形式です。その単位要素は <phrase> であり、ネストされた <source> 要素と <target> 要素を持ちます。

Qt Phrase Book (.QPH) は Qt Translation Source (.TS) とは異なり、.QPHは用語集であるのに対し、.TSは交換用ファイル形式です。.TSはQtアプリケーションがローカライズされたコンテンツをソフトウェアに読み込むために使用され、.QPHはQt リンギストにおける用語ベースとして機能します。

コードサンプル

<!DOCTYPE QPH>
<QPH language="en-GB">
  <phrase>
    <source>boolean_key</source>
    <target>--- true
</target>
  </phrase>
  <phrase>
    <source>empty_string_translation</source>
    <target/>
  </phrase>
  <phrase>
    <source>key_with_description</source>
    <target>私はこのキーにとって非常に重要な説明です!</target>(少なくとも一部のファイル形式で)</target>
  </phrase>
  <phrase>
    <source>key_with_line-break</source>
    <target>この訳文には以下が含まれます</target>
a line-break.</target>
  </phrase>
  <phrase>
    <source>nested.deeply.key</source>
    <target>Wow, this key is nested even deeper.</target>
  </phrase>
  <phrase>
    <source>nested.key</source>
    <target>This key is nested inside a namespace.</target>
  </phrase>
  <phrase>
    <source>null_translation</source>
    <target/>
  </phrase>
  <phrase>
    <source>pluralized_key_one</source>
    <target>子猫が1匹見つかりました。</target>
  </phrase>
  <phrase>
    <source>pluralized_key_other</source>
    <target>Wow, you have %s kittens!</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>Simple key, simple message, so simple.</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.