XLIFF 2.0¶
Afegit a la versió 5.15.
Canviat a la versió 2026.9.
Nota
El suport per a aquest format està en desenvolupament. És possible que algunes funcions encara no estiguin disponibles i el comportament pot canviar entre les versions. Els comentaris de les proves són benvinguts.
Nota
XLIFF 1.1 i 1.2 és un format diferent i no és compatible amb XLIFF 2.0.
XML-based format created to standardize translation files, but in the end it is one of many standards, in this area.
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 Paràmetres del format de fitxer:
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.
Vegeu també
Example files¶
Example XLIFF file:
<?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 |
|
|---|---|
Lingualitat ⓘ |
Bilingual |
Supports plural ⓘ |
|
Supports descriptions ⓘ |
|
Admet l’explicació ⓘ |
|
Supports context ⓘ |
|
Supports location ⓘ |
|
Supports flags ⓘ |
|
Additional states ⓘ |
|
API identifier |
|
Admet cadenes de només lectura ⓘ |
|
Supports removing obsolete strings ⓘ |
|
Configuració del Weblate¶
Placa web típica Configuració dels components |
|
|---|---|
Filtre de fitxers |
|
Fitxer de llengua base monolingüe |
«Buit». |
Plantilla per a traduccions noves |
|
Format de fitxer |
XLIFF 2.0 Translation File |