> ## Documentation Index
> Fetch the complete documentation index at: https://support.lilt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XLIFF Status Handling

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.

## Importing XLIFF files into LILT

LILT supports the importing of [*Document Actions*](/kb/document-actions) *article.*

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 <img src="https://mintcdn.com/lilt-db26f913/39zJavhRvES4F0j6/images/88714dc2-1500018558261-segment_checkmark_24x24.png?fit=max&auto=format&n=39zJavhRvES4F0j6&q=85&s=ab70cf03aac9b0298ecb2b0fd7354eda" width="24" height="24" data-path="images/88714dc2-1500018558261-segment_checkmark_24x24.png" />                                                        |
| final                    | Available translation                                    | Accepted <img src="https://mintcdn.com/lilt-db26f913/6FefOzQXhgpnOwpd/images/f2c007c0-1500018558281-segment_double_checkmark_24x24.png?fit=max&auto=format&n=6FefOzQXhgpnOwpd&q=85&s=94ead5f4b57104b9a2a5062aebdd1f38" width="24" height="24" data-path="images/f2c007c0-1500018558281-segment_double_checkmark_24x24.png" /> |
| signed-off               | Available translation                                    | Accepted <img src="https://mintcdn.com/lilt-db26f913/6FefOzQXhgpnOwpd/images/f2c007c0-1500018558281-segment_double_checkmark_24x24.png?fit=max&auto=format&n=6FefOzQXhgpnOwpd&q=85&s=94ead5f4b57104b9a2a5062aebdd1f38" width="24" height="24" data-path="images/f2c007c0-1500018558281-segment_double_checkmark_24x24.png" /> |
| 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):

\<?xml version="1.0" encoding="UTF-8"?>\
\<xliff its:version="2.0" version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:its="[http://www.w3.org/2005/11/its](http://www.w3.org/2005/11/its)" xmlns:itsxlf="[http://www.w3.org/ns/its-xliff/](http://www.w3.org/ns/its-xliff/)" xmlns:okp="okapi-framework:xliff-extensions">\
\<file datatype="html" original="sample.html" source-language="en-US" target-language="es-ES">\
\<body>\
\<trans-unit id="tu1" restype="x-title-tu1">\
\<source xml:lang="en-US">HTML title\</source>\
\<target xml:lang="es-ES" state="translated">Título HTML\</target>\
\</trans-unit>\
\</body>\
\</file>\
\</xliff>

If this document is imported into LILT, the following would happen with the available translation unit:

* LILT finds the source text `HTML title` and adds that in a new segment entry within LILT.

* LILT finds the state of the target segment field: `state="translated"`. Referencing the table above, this means LILT will:

  * Populate the segment’s target text with the available translation: `Título HTML`.

  * Mark the segment as confirmed

    <Frame>
      <img src="https://mintcdn.com/lilt-db26f913/39zJavhRvES4F0j6/images/88714dc2-1500018558261-segment_checkmark_24x24.png?fit=max&auto=format&n=39zJavhRvES4F0j6&q=85&s=ab70cf03aac9b0298ecb2b0fd7354eda" width="24" height="24" data-path="images/88714dc2-1500018558261-segment_checkmark_24x24.png" />
    </Frame>

    .

<Frame>
  <img src="https://mintcdn.com/lilt-db26f913/HjBo5oHsJrmt2O3Y/images/e37147a7-1500018279102-xliff_imported_367x107.png?fit=max&auto=format&n=HjBo5oHsJrmt2O3Y&q=85&s=490727d3d442dcd0a530b79df3795956" width="367" height="107" data-path="images/e37147a7-1500018279102-xliff_imported_367x107.png" />
</Frame>
