XLIFF 2.0¶
Added in version 5.15.
Notă
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.
Notă
XLIFF 1.1 and 1.2 is a different format and is not compatible with XLIFF 2.0.
Format bazat pe XML creat pentru a standardiza fișierele de traducere, dar în cele din urmă este unul dintre multele standarde, în acest domeniu.
XML Localization Interchange File Format (XLIFF) 2.0 is currently only supported as bilingual.
Weblate acceptă XLIFF în mai multe variante:
- XLIFF 2.0 translation file
Fișier XLIFF simplu în care conținutul elementelor este stocat sub formă de text simplu (toate elementele XML sunt evadate).
- XLIFF 2.0 with placeables support
XLIFF standard, care acceptă elemente de tip „placeables” și alte elemente XML.
Vezi și
Example files¶
Example XLIFF file:
<?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 ⓘ |
|
Configurație Weblate¶
Tipic Weblate Configurația componentei |
|
|---|---|
Mască de fișier |
|
Fișier de limbă de bază monolingvă |
Gol |
Șablon pentru traduceri noi |
|
Format fișier |
XLIFF 2.0 Translation File |