XLIFF 2.0

Added in version 5.15.

버전 2026.9에서 변경.

참고

이 형식에 대한 지원은 개발 중입니다. 일부 기능은 아직 사용할 수 없으며 동작이 릴리스 간에 변경될 수 있습니다. 테스트 피드백을 환영합니다.

참고

XLIFF 1.1 및 1.2 는 다른 형식이며 XLIFF 2.0과 호환되지 않습니다.

번역 파일을 표준화하기 위해 만들어진 XML 기반 형식이지만, 결국 이 분야의 수많은 표준 중 하나입니다.

XML 현지화 교환 파일 형식 (XLIFF) 2.0 은 현재 이중 언어로만 지원됩니다.

Weblate supports XLIFF 2.0 as a single file format. Placeables handling is controlled by the xliff_placeables 파일 형식 매개변수:

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

파일 예시

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>
지원 기능

파일 확장자

.xlf, .xliff

언어성 ⓘ

이중 언어

복수형 지원 ⓘ

Yes

설명 지원 ⓘ

Yes

설명 지원 ⓘ

No

문맥 지원 ⓘ

Yes

위치 지원 ⓘ

Yes

플래그 지원 ⓘ

Yes

추가 상태 ⓘ

Approved, Needs editing

API 식별자

xliff2

읽기 전용 문자열 지원 ⓘ

Yes

Supports removing obsolete strings ⓘ

No

Weblate 구성

일반적인 Weblate 구성요소 설정

파일 마스크

localizations/*.xliff

단일언어 기반 언어 파일

빈

신규 번역의 템플릿

localizations/en-US.xliff

파일 형식

XLIFF 2.0 번역 파일