ຮູບແບບ TermBase eXchange

Added in version 4.5.

Changed in version 5.12.

TBX ແມ່ນຮູບແບບ XML ສຳລັບການແລກປ່ຽນຂໍ້ມູນຄຳສັບ.

ຄຸນສົມບັດທີ່ຮອງຮັບ

ນາມສະກຸນໄຟລ໌

.tbx

ຈຳນວນພາສາ

ສອງພາສາ

ຮອງຮັບພະຫູພົດ

No

ຮອງຮັບຄຳອະທິບາຍ

Yes

ຮອງຮັບຄຳຊີ້ແຈງ

Yes

ຮອງຮັບບໍລິບົດ (context)

Yes

ຮອງຮັບຕຳແໜ່ງ

No

ຮອງຮັບທຸງ (flags)

Yes

ຕົວລະບຸ API

tbx

ຮອງຮັບຂໍ້ຄວາມແບບອ່ານຢ່າງດຽວ

No

ຮອງຮັບການລຶບຂໍ້ຄວາມທີ່ລ້າສະໄໝ

No

Term alternatives

Each TBX concept is one string with independent lists of source and target alternatives. Weblate reads every direct <tig> in the selected languages; IDs are optional and do not pair alternatives across languages. All source alternatives can match in the glossary, and each permitted target can be copied separately. Term statuses and notes are displayed with their alternatives.

See Multivalue formats for how alternatives are handled by quality checks, automatic fixes, and machine translation.

When editing alternatives, unchanged text is matched first, including duplicate occurrences. Remaining alternatives reuse unmatched terms in their original order, retaining IDs and metadata. Renaming and deleting alternatives together can therefore associate a renamed term with the first unmatched term's metadata. New alternatives are created without IDs. Term metadata is read-only in Weblate.

A missing target language does not remove a concept whose source exists. DNT terms can use the matching source alternative without creating a translation. Language codes still need to match the component configuration.

ຄຳອະທິບາຍ

Weblate ໂຫຼດ ແລະ ບັນທຶກຄຳອະທິບາຍຈາກໄຟລ໌ TBX ເພື່ອສະແດງໃນ ຄຳສັບສະເພາະ.

  • ຄຳອະທິບາຍການແປຖືກເກັບໄວ້ເປັນ Tag <note from="translator"></note>.

  • ຄຳອະທິບາຍຂໍ້ຄວາມຕົ້ນສະບັບຖືກເກັບໄວ້ເປັນ Tag <descrip></descrip>.

  • ຄຳບັນຍາຍຂໍ້ຄວາມຕົ້ນສະບັບຖືກເກັບໄວ້ເປັນ Tag <descrip type="Usage note"></descrip>.

Concept notes are shared. Language notes are read only for the selected language, and term notes belong to their own alternative. Editing a target explanation does not overwrite notes in other languages.

TBX components offer native and generated TBX downloads. Conversion to formats that use grammatical plurals is unavailable because those formats cannot preserve independent source and target alternatives.

Generated TBX downloads preserve represented flags, explanations, alternative IDs, statuses, and note scopes. Weblate flags use the same weblate-flags attribute as native TBX storage. Native file editing also preserves unrecognized XML and unselected languages; generated exports contain the selected language pair.

Flag ຂອງ Glossary ແລະ Metadata ທີ່ອ່ານໄດ້ຢ່າງດຽວ

Weblate ນຳເຂົ້າຄຳສັບທີ່ມີສະຖານະການບໍລິຫານເປັນ forbidden ຫຼື obsolete ໃນ <termNote type="administrativeStatus"> ເປັນ ການແປທີ່ຫ້າມໃຊ້.

ຄຳສັບທີ່ມີ <descrip type="Translation needed">No</descrip> ຈະຖືກນຳເຂົ້າເປັນຂໍ້ຄວາມທີ່ອ່ານໄດ້ຢ່າງດຽວ, ເບິ່ງ ຄຳສັບທີ່ບໍ່ຕ້ອງແປ.

ການນຳເຂົ້າໄຟລ໌ Glossary

TBX ສາມາດເກັບຫຼາຍພາສາໃນໄຟລ໌ XML ດຽວ, ແຕ່ Weblate ຍັງຄົງ Map ແຕ່ລະໄຟລ໌ Component ໄປຍັງພາສາການແປໂດຍໃຊ້ Component File Mask. ສຳລັບ Component Glossary ຂອງ TBX, ພາສາຕົ້ນສະບັບຂອງ Component ຈະຖືກໃຊ້ສຳລັບຄຳສັບຕົ້ນສະບັບ ແລະ ພາສາທີ່ແຍກວິເຄາະມາຈາກຊື່ໄຟລ໌ຈະຖືກໃຊ້ເປັນພາສາ Glossary ປາຍທາງ.

ຫຼີກລ່ຽງການຕັ້ງຊື່ໄຟລ໌ການແປ TBX ດ້ວຍລະຫັດພາສາທີ່ຄືກັນກັບພາສາຕົ້ນສະບັບຂອງ Component, ເພາະວ່າພາສາຕົ້ນສະບັບມີຢູ່ໃນ Weblate ແລ້ວ ແລະ ໄຟລ໌ອາດຖືກກວດພົບວ່າເປັນພາສາຊ້ຳກັນ.

The Add upload method preserves alternative IDs, statuses, and scoped notes when importing TBX into a TBX glossary.

ໄຟລ໌ຕົວຢ່າງ

ໄຟລ໌ຕົວຢ່າງ:

<?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>

ການຕັ້ງຄ່າ Weblate

Typical Weblate ການຕັ້ງຄ່າ Component

ໜ້າກາກໄຟລ໌

tbx/*.tbx

ໄຟລ໌ພາສາຫຼັກ (Monolingual)

ຫວ່າງເປົ່າ

ແມ່ແບບສຳລັບການແປໃໝ່

ຫວ່າງເປົ່າ

ຮູບແບບໄຟລ໌

ໄຟລ໌ TermBase eXchange