Podporované typy souborů (Strings)

.QPH - Qt Phrase Book (Strings)

Obsah je strojově přeložen z angličtiny s použitím Phrase Language AI.

Přípony souborů 

.qph

Rozšíření API 

qph

Import 

Ano

Export 

Ano

Podpora plurálových tvarů 

Ne

Podpora pro popis 

Ne

Qt Phrase Book je formát souboru založený na XML, který používají překladatelé Qt k naplnění předem přeloženého obsahu. Jeho jednotkový element je <phrase> s vnořeným <zdroj> a <cíl> elementem.

Qt Phrase Book (.QPH) se liší od Qt Translation Source (.TS) v tom, že .QPH je slovník, zatímco .TS je formát souboru pro výměnu. .TS používají aplikace Qt k načtení lokalizovaného obsahu do softwaru, zatímco .QPH slouží jako termínová databáze v Qt překladateli.

Vzor kódu

<!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>I'm a very important description for this key!"},{"translation_17":"(At least in some formats)</target> (At least in some formats)</target>
  </phrase>
  <phrase>
    <source>key_with_line-break</source>
    <target>This translations contains
a line-break.</target>
  </phrase>
  <phrase>
    <zdroj>nested.deeply.klíč</zdroj>
    <cíl>Wow, this klíč is nested even deeper.</cíl>
  </phrase>
  <phrase>
    <zdroj>nested.klíč</zdroj>
    <cíl>This klíč is nested inside a namespace.</cíl>
  </phrase>
  <phrase>
    <source>null_translation</source>
    <target/>
  </phrase>
  <phrase>
    <source>pluralized_key_one</source>
    <cíl>Only one kitten found.</cíl>
  </phrase>
  <phrase>
    <source>pluralized_key_other</source>
    <cíl>Wow, you have %s kittens!</cíl>
  </phrase>
  <phrase>
    <source>pluralized_key_zero</source>
    <cíl>You have no kittens.</cíl>
  </phrase>
  <phrase>
    <zdroj>sample_collection</zdroj>
    <target>---
- first item
- second item
- third item
</target>
  </phrase>
  <phrase>
    <zdroj>simple_klíč</zdroj>
    <cíl>Simple klíč, simple message, so simple.</cíl>
  </phrase>
  <phrase>
    <zdroj>unverified_klíč</zdroj>
    <cíl>This translation is not yet ověřeno and waits for it.</cíl> (In some formats we also stáhnout this stav)</cíl>
  </phrase>
</QPH>
Byl pro vás tento článek užitečný?

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.