Formato TermBase eXchange

Added in version 4.5.

Alterado na versão 5.12.

TBX é um formato XML para a troca de dados de terminologia.

Recursos suportados

File extensions

.tbx

Linguality

Bilingue

Supports plural

No

Supports descriptions

Yes

Supports explanation

Yes

Supports context

Yes

Supports location

No

Supports flags

Yes

API identifier

tbx

Supports read-only strings

No

Explicações

O Weblate carrega e grava explicações de ficheiros TBX para serem exibidas no Glossário.

  • A explicação da tradução é armazenada como tag <note from="translator"></note>.

  • A explicação da cadeia fonte é armazenada como tag <descrip></descrip>.

  • Source string description is stored as <descrip type="Usage note"></descrip> tag.

Glossary flags and read-only metadata

Weblate imports terms with forbidden or obsolete administrative status in <termNote type="administrativeStatus"> as Traduções proibidas.

Terms with <descrip type="Translation needed">No</descrip> are imported as read-only strings, see Termos não traduzíveis.

Importing glossary files

O TBX pode armazenar múltiplos idiomas em um ficheiro XML, mas o Weblate mapeia na mesma cada ficheiro de componente para um idioma de tradução usando a máscara de componente de ficheiro. Para um componente de glossário TBX, o idioma fonte de componente é usado para termos fonte e o idioma analisado do nome de ficheiro é usado enquanto glossário do idioma alvo.

Avoid naming a TBX translation file with the same language code as the component source language, because the source language already exists in Weblate and the file can be detected as a duplicate language.

Ficheiro de exemplo

Exemplo de ficheiro:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE martif PUBLIC "ISO 12200:1999A//DTD MARTIF core (DXFcdV04)//EN" "TBXcdv04.dtd">
<martif type="TBX" xml:lang="en">
    <martifHeader>
        <fileDesc>
            <sourceDesc>
                <p>Translate Toolkit</p>
            </sourceDesc>
        </fileDesc>
    </martifHeader>
    <text>
        <body>
            <termEntry>
                <langSet xml:lang="en">
                  <tig>
                    <term>address bar</term>
                  </tig>
                </langSet>
                <langSet xml:lang="cs">
                  <tig>
                    <term>adresní řádek</term>
                  </tig>
                </langSet>
            </termEntry>
            <termEntry weblate-flags="terminology">
                <langSet xml:lang="en">
                  <tig>
                    <term>administrator</term>
                  </tig>
                </langSet>
                <langSet xml:lang="cs">
                  <tig>
                    <term>správce</term>
                  </tig>
                </langSet>
            </termEntry>
            <termEntry>
                <descrip>Example source string explanation text</descrip>
                <descrip type="Usage note">Example source string description text</descrip>
                <langSet xml:lang="en">
                  <tig>
                    <term>administrate</term>
                  </tig>
                </langSet>
                <langSet xml:lang="cs">
                  <tig>
                    <term>spravovat</term>
                    <note from="translator">Example translation string explanation text</note>
                  </tig>
                </langSet>
            </termEntry>
            <termEntry>
                <descrip type="Translation needed">No</descrip> <!-- mark as untranslateable -->
                <langSet xml:lang="en">
                  <tig>
                    <term>Weblate</term>
                  </tig>
                </langSet>
            </termEntry>
            <termEntry>
                <langSet xml:lang="en">
                  <tig>
                    <term>example forbidden term</term>
                    <termNote type="administrativeStatus">forbidden</termNote>
                  </tig>
                </langSet>
                <langSet xml:lang="cs">
                  <tig>
                    <term>příklad zakázaného výrazu</term>
                  </tig>
                </langSet>
            </termEntry>
        </body>
    </text>
</martif>

Configuração do Weblate

Configuração de componente típica do Weblate

Máscara de ficheiros

tbx/*.tbx

Ficheiro de idioma base monolingue

Vazio

Modelo para novas traduções

Vazio

Formato de ficheiro

Ficheiro TermBase eXchange