Tipos de arquivos aceitos (Strings)

.QPH - Qt Phrase Book (Strings)

O conteúdo de toda a Central de Ajuda é traduzido automaticamente de inglês pelo Phrase Language AI.

Extensões de arquivo 

.qph

Extensão de API 

qph

Importar 

Sim

Exportar 

Sim

Suporte para formas plurais 

Não

Suporte para descrição 

Não

Qt Phrase Book é um formato de arquivo baseado em XML usado pelo Qt Linguist para preencher conteúdo pré-traduzido. Seu elemento unit é <phrase> com um <source> aninhado e um elemento <target>.

Qt Phrase Book (.QPH) é diferente do Qt Translation Source (.TS) pelo fato de que .QPH é um glossário, enquanto .TS é um formato de arquivo de intercâmbio. .TS é usado por aplicativos Qt para carregar conteúdo localizado no software, enquanto .QPH serve como uma base de termos no Qt Linguist.

Amostra de código

<!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!</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>
    <source>nested.deeply.key</source>
    <target>Wow, this key is nested even deeper.</target>
  </phrase>
  <phrase>
    <source>nested.key</source>
    <tradução>Esta chave está aninhada dentro de um namespace.</tradução>
  </phrase>
  <phrase>
    <source>null_translation</source>
    <target/>
  </phrase>
  <phrase>
    <source>pluralized_key_one</source>
    <tradução>Apenas um gatinho encontrado.</tradução>
  </phrase>
  <phrase>
    <source>pluralized_key_other</source>
    <tradução>Uau, você tem %s gatinhos!</tradução>
  </phrase>
  <phrase>
    <source>pluralized_key_zero</source>
    <tradução>Você não tem gatinhos.</tradução>
  </phrase>
  <phrase>
    <source>sample_collection</source>
    <target>---
- first item
- second item
- third item
</target>
  </phrase>
  <phrase>
    <source>simple_key</source>
    <tradução>Chave simples, mensagem simples, tão simples.</tradução>
  </phrase>
  <phrase>
    <source>unverified_key</source>
    <tradução>Esta tradução ainda não está verificado e aguarda por isso.</tradução> (Em alguns formatos nós também exportar este estado)</tradução>
  </phrase>
</QPH>
Esse artigo foi útil?

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.