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

.QPH - Qt Phrase Book (Strings)

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

ファイル拡張子 

.qph

API拡張 

qph

インポート 

はい

エクスポート 

はい

複数形のサポート 

いいえ

説明のサポート 

いいえ

Qt フレーズブックは、Qt リンギストが事前翻訳されたコンテンツを埋め込むために使用する XML ベースのファイル形式です。そのユニット要素は <phrase> で、ネストされた <source><target> 要素を持ちます。

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

コードサンプル

<!DOCTYPE QPH>
<QPH language="ja-JP">
  <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>このキーはさらに深くネストされています。</target>
  </phrase>
  <phrase>
    <source>nested.key</source>
    <target>このキーは名前空間内にネストされています。</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>わあ、あなたは %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.