XLIFF 2.0

Added in version 5.15.

Nota

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.

Nota

XLIFF 1.1 e 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 è attualmente supportato solo come bilingue.

Weblate supporta XLIFF in diverse varianti:

XLIFF 2.0 translation file

Simple XLIFF file where content of the elements is stored as plain text (all XML elements being escaped).

XLIFF 2.0 with placeables support

Standard XLIFF supporting placeables and other XML elements.

File di esempio

File esempio XLIFF:

<?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>
Funzionalità supportate

Estensioni dei file

.xlf, .xliff

Linguality

Bilingual

Supports plural

Yes

Supports descriptions

Yes

Supports explanation

No

Supports context

Yes

Supports location

Yes

Supports flags

Yes

Additional states

Approved, Needs editing

API identifier

xliff2, xliff2-placeables

Supports read-only strings

Yes

Supports removing obsolete strings

No

Configurazione Weblate

Typical Weblate Component configuration

Maschera del file

localizations/*.xliff

File di lingua a base monolingue

Empty

Modello per le nuove traduzioni

localizations/en-US.xliff

Formato file

XLIFF 2.0 Translation File