Qt Phrase Book

Qt Phrase Book

File Extensions.qph
API Extensionqph
Format OptionsNo
ImportYes
ExportYes
Pluralization supported?No
Descriptions supported?No

Example

<!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>Check it out! This key has a description! (At least in some formats)</target>
  </phrase>
  <phrase>
    <source>key_with_line-break</source>
    <target>This translations contains
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>Only one pluralization found.</target>
  </phrase>
  <phrase>
    <source>pluralized_key_other</source>
    <target>Wow, you have %s pluralizations!</target>
  </phrase>
  <phrase>
    <source>pluralized_key_zero</source>
    <target>You have no pluralization.</target>
  </phrase>
  <phrase>
    <source>sample_collection</source>
    <target>---
- first item
- second item
- third item
</target>
  </phrase>
  <phrase>
    <source>simple_key</source>
    <target>Just a simple key with a simple message.</target>
  </phrase>
  <phrase>
    <source>unverified_key</source>
    <target>This translation is not yet verified and waits for it. (In some formats we also export this status)</target>
  </phrase>
</QPH>