XLIFF 2.0¶
Added in version 5.15.
バージョン 2026.9 で変更.
注釈
この形式への対応は開発中です。一部の機能はまだ使用できないません。動作はリリース間で変更することがあります。テスト結果のフィードバックは歓迎します。
注釈
XLIFF 1.1 および 1.2 は XLIFF 2.0 とは異なる形式であり、互換性がありません。
XML ベースのファイル形式で、翻訳ファイルを標準化するために作成されましたが、結果的には、この分野の 多くの標準 の 1 つにしかすぎません。
XML Localization Interchange File Format (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 <https://demo.weblate.org/>!
</source>
</segment>
</unit>
<unit id="thanks">
<segment>
<source>Thank you for using Weblate.</source>
</segment>
</unit>
</file>
</xliff>
File extensions |
|
|---|---|
Linguality ⓘ |
Bilingual |
Supports plural ⓘ |
|
Supports descriptions ⓘ |
|
Supports explanation ⓘ |
|
Supports context ⓘ |
|
Supports location ⓘ |
|
Supports flags ⓘ |
|
Additional states ⓘ |
|
API identifier |
|
Supports read-only strings ⓘ |
|
Supports removing obsolete strings ⓘ |
|
Weblate の設定¶
典型的な Weblate コンポーネント構成 |
|
|---|---|
ファイル マスク |
|
モノリンガル用の、基礎となる言語ファイル |
Empty(空) |
新しい翻訳のテンプレート |
|
ファイル形式 |
XLIFF 2.0 形式の翻訳ファイル |