# XLIFF 2.0

#### Versionadded
Added in version 5.15.

#### Versionchanged
Geändert in Version 2026.9.

#### NOTE
Die Unterstützung für dieses Format befindet sich in der Entwicklung. Einige Funktionen sind möglicherweise noch nicht verfügbar, und das Verhalten kann sich zwischen den verschiedenen Versionen ändern. Rückmeldungen aus der Testphase sind willkommen.

#### NOTE
[XLIFF 1.1 und 1.2](https://docs.weblate.org/de/latest/formats/xliff.md) ist ein anderes Format und nicht kompatibel mit XLIFF 2.0.

XML-basiertes Format, das zur Vereinheitlichung von Übersetzungsdateien entwickelt wurde, aber letztlich nur einer von [vielen Standards](https://xkcd.com/927/) in diesem Bereich ist.

XML Localization Interchange File Format (XLIFF) 2.0 wird aktuell nur zweisprachig unterstützt.

Weblate supports XLIFF 2.0 as a single file format. Placeables handling is
controlled by the `xliff_placeables` [Dateiformatparameter](https://docs.weblate.org/de/latest/formats.md#file-format-params):

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

#### SEE ALSO
* [XML Localization Interchange File Format (XLIFF) 2.0](https://docs.oasis-open.org/xliff/xliff-core/v2.0/xliff-core-v2.0.html) Spezifikation
* [XLIFF auf Wikipedia](https://de.wikipedia.org/wiki/XML_Localization_Interchange_File_Format)
* [XLIFF](https://docs.translatehouse.org/projects/translate-toolkit/en/latest/formats/xliff.html)
* [Dateiformatparameter](https://docs.weblate.org/de/latest/formats.md#file-format-params)

## Beispieldateien

XLIFF-Beispieldatei:

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

<!-- AUTOGENERATED START: format-features xliff2 -->
<!-- This section is automatically generated by `./manage.py list_format_features`. Do not edit manually. -->

#### Unterstützte Funktionen

| Dateiendungen                                                                                                        | `.xlf`, `.xliff`                     |
|----------------------------------------------------------------------------------------------------------------------|--------------------------------------|
| Linguistik: [ⓘ](https://docs.weblate.org/de/latest/formats.md#bimono)                                                  | Zweisprachig                         |
| Unterstützt Pluralformen [ⓘ](https://docs.weblate.org/de/latest/formats.md#format-plurals)                             | `Yes`                                |
| Unterstützt Beschreibungen [ⓘ](https://docs.weblate.org/de/latest/formats.md#format-description)                       | `Yes`                                |
| Unterstützt Erklärung [ⓘ](https://docs.weblate.org/de/latest/formats.md#format-explanation)                            | `No`                                 |
| Unterstützt Kontext [ⓘ](https://docs.weblate.org/de/latest/formats.md#format-context)                                  | `Yes`                                |
| Unterstützt Ort [ⓘ](https://docs.weblate.org/de/latest/formats.md#format-location)                                     | `Yes`                                |
| Unterstützt Markierungen [ⓘ](https://docs.weblate.org/de/latest/formats.md#format-flags)                               | `Yes`                                |
| Zusätzliche Status [ⓘ](https://docs.weblate.org/de/latest/formats.md#format-states)                                    | `Genehmigt`, `Bearbeitungsbedürftig` |
| API-Kennung                                                                                                          | `xliff2`                             |
| Unterstützt schreibgeschützte Zeichenketten [ⓘ](https://docs.weblate.org/de/latest/formats.md#read-only-strings)       | `Yes`                                |
| Unterstützt das Entfernen veralteter Zeichenketten [ⓘ](https://docs.weblate.org/de/latest/formats.md#obsolete-strings) | `No`                                 |
<!-- AUTOGENERATED END: format-features xliff2 -->

## Weblate-Konfiguration

|                                | Typische Weblate-[Komponentenkonfiguration](https://docs.weblate.org/de/latest/admin/projects.md#component)   |
|--------------------------------|------------------------------------------------------------------------------------------------------|
| Dateimaske                     | `localizations/*.xliff`                                                                              |
| Einsprachige Basissprachdatei  | Leer                                                                                                 |
| Vorlage für neue Übersetzungen | `localizations/en-US.xliff`                                                                          |
| Dateiformat                    | XLIFF-2.0-Übersetzungsdatei                                                                          |
