XLIFF 2.0¶
Added in version 5.15.
A 2026.9 verzióban változott.
Megjegyzés
A formátum támogatása még fejlesztés alatt áll. Egyes funkciók esetleg még nem érhetők el, és működése változhat a verziók között. Tesztelési visszajelzéseket szívesen fogadunk.
Megjegyzés
XLIFF 1.1 and 1.2 is a different format and is not compatible with XLIFF 2.0.
XML-alapú formátum, amelyet a fordítási fájlok szabványosítására hoztak létre, de végül csak egy lett a sok szabvány közül ezen a területen.
XML Localization Interchange File Format (XLIFF) 2.0 is currently only supported as bilingual.
Weblate supports XLIFF 2.0 as a single file format. Placeables handling is
controlled by the xliff_placeables Fájlformátum paraméterek:
Plain text — escape XML elements in the content (the historical default for existing XLIFF 2.0 components).
Placeables — preserve placeables and other XML elements (the default for new components). Tags then appear as placeholders in the editor.
Lásd még
Példafájlok¶
Példa XLIFF-fájl:
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:2.0" version="2.0" srcLang="en" trgLang="cs">
<file id="translation">
<unit id="hello">
<segment>
<source xml:space="preserve">Hello, world!
</source>
<target xml:space="preserve">Ahoj světe!
</target>
</segment>
</unit>
<unit id="orangutan">
<segment>
<source xml:space="preserve">Orangutan has %d banana.
</source>
</segment>
</unit>
<unit id="weblate">
<segment>
<source xml:space="preserve">Try Weblate at <https://demo.weblate.org/>!
</source>
</segment>
</unit>
<unit id="thanks">
<segment>
<source>Thank you for using Weblate.</source>
</segment>
</unit>
</file>
</xliff>
File extensions |
|
|---|---|
Linguality ⓘ |
Bilingual |
Supports plural ⓘ |
|
Supports descriptions ⓘ |
|
Supports explanation ⓘ |
|
Supports context ⓘ |
|
Supports location ⓘ |
|
Supports flags ⓘ |
|
Additional states ⓘ |
|
API identifier |
|
Supports read-only strings ⓘ |
|
Supports removing obsolete strings ⓘ |
|
Weblate beállítás¶
Tipikus Weblate Összetevőkonfiguráció |
|
|---|---|
Fájlmaszk |
|
Egynyelvű alap nyelvi fájl |
Üres |
Sablon az új fordításokhoz |
|
Fájlformátum |
XLIFF 2.0 Translation File |