Tipi di file supportati (Strings)

.QPH - Qt Phrase Book (Strings)

Contenuti tradotti automaticamente dall'inglese con Phrase Language AI.

Estensioni dei file 

.qph

Estensione API 

qph

Importa 

Sì

Esporta 

Sì

Supporto forme plurali 

No

Supporto descrizione 

No

Qt Phrase Book è un formato di file basato su XML utilizzato dai traduttori Qt per popolare contenuto pre-tradotto. Il suo elemento unit è <phrase> con un elemento <origine> annidato e un elemento <destinazione>.

Qt Phrase Book (.QPH) è diverso da Qt Translation Source (.TS) in quanto .QPH è un glossario, mentre .TS è un formato di file di scambio. .TS è utilizzato dalle applicazioni Qt per caricare contenuto localizzato nel software, mentre .QPH funge da database terminologico in Qt Linguist.

Campione di codice

<!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>Sono una descrizione molto importante per questa chiave!</target> (Almeno in alcuni formati)</target>
  </phrase>
  <phrase>
    <source>key_with_line-break</source>
    <target>Questa traduzione contiene
un'interruzione di riga.</target>
  </phrase>
  <phrase>
    <source>nested.deeply.key</source>
    <target>Wow, questa chiave è annidata ancora più in profondità.</target>
  </phrase>
  <phrase>
    <source>nested.key</source>
    <target>Questa chiave è annidata all'interno di un namespace.</target>
  </phrase>
  <phrase>
    <source>null_translation</source>
    <target/>
  </phrase>
  <phrase>
    <source>pluralized_key_one</source>
    <target>Trovato solo un gattino.</target>
  </phrase>
  <phrase>
    <source>pluralized_key_other</source>
    <destinazione>Wow, hai %s gattini!</destinazione>
  </phrase>
  <phrase>
    <source>pluralized_key_zero</source>
    <destinazione>Non hai gattini.</destinazione>
  </phrase>
  <phrase>
    <source>sample_collection</source>
    <target>---
- first item
- second item
- third item
</target>
  </phrase>
  <phrase>
    <source>simple_key</source>
    <destinazione>Chiave semplice, messaggio semplice, così semplice.</destinazione>
  </phrase>
  <phrase>
    <source>unverified_key</source>
    <destinazione>Questa traduzione non è ancora verificata. (In alcuni formati esportiamo anche questo stato)</destinazione>
  </phrase>
</QPH>
Questo articolo ti è stato utile?
★ ★ ★ ★ ★

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.