XLIFF 2.0

Added in version 5.15.

Promijenjeno u verziji 2026.9.

Napomena

Support for this format is under development. Some features might not yet be available and the behavior can change between releases. Feedback from testing is welcome.

Napomena

XLIFF 1.1 and 1.2 is a different format and is not compatible with 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 se trenutačno podržava samo kao dvojezično.

Weblate supports XLIFF 2.0 as a single file format. Placeables handling is controlled by the xliff_placeables Parametri formata datoteke:

  • 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.

Example files

Primjer XLIFF datoteke:

<?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 &lt;https://demo.weblate.org/&gt;!
</source>
      </segment>
    </unit>
    <unit id="thanks">
      <segment>
        <source>Thank you for using Weblate.</source>
      </segment>
    </unit>
  </file>
</xliff>
Podržane funkcije

Datotečni sufiks

.xlf, .xliff

Jezičnost ⓘ

Dvojezične

Podržava množinu ⓘ

Yes

Podržava opise ⓘ

Yes

Podržava objašnjenja ⓘ

No

Podržava kontekst ⓘ

Yes

Podržava mjesto ⓘ

Yes

Podržava oznake ⓘ

Yes

Dodatna stanja ⓘ

Approved, Needs editing

Identifikator API-ja

xliff2

Podržava izraze koji su samo-za-čitanje ⓘ

Yes

Supports removing obsolete strings ⓘ

No

Weblate konfiguracija

Typical Weblate Konfiguracija komponente

Maska datoteke

localizations/*.xliff

Jednojezična datoteka osnovnog jezika

Empty

Predložak za nove prijevode

localizations/en-US.xliff

Format datoteke

XLIFF 2.0 Translation File