XLIFF documents are the industry standard for exchanging translatable text and localization-related data across different localization tools. XLIFF files consist of translation units that appear as tags:
<trans-unit> ... </trans-unit>
Within each translation unit is a source/target segment pair, where the target segment can be empty or populated depending on whether the segment has been translated.
The benefit of XLIFF files is that they can contain additional information beyond the source and target text, making it easy to pass all the necessary information about each segment between different localization tools.
This article looks at how the status of segments is utilized when XLIFF documents are imported into Lilt.
When importing XLIFF files, Lilt utilizes the XLIFF state field to:
Populate the segment’s target content field within Lilt.
Set the segment status within Lilt.
The different XLIFF states that Lilt recognizes are shown in the table below, along with how each state is used to populate the target content and set the status of each segment.
XLIFF segment state:
Lilt segment target content is populated using:
Lilt segment status is set to:
translated
Available translation
Confirmed
final
Available translation
Accepted
signed-off
Available translation
Accepted
new
—
—
needs-translation
—
—
needs-adaptation
Available translation
—
needsl10n
—
—
needs-review-adaptation
Available translation
—
needs-review-l10n
Available translation
—
needs-review-translation
Available translation
—
(no state)
Available translation (if different from source content)
—
Example XLIFF 1.2 file (using English source text and Spanish target text):