XLIFF: exchanging content to translateXLIFF : échanger du contenu à traduire
XLIFF does not exchange linguistic resources (memories, terms) but content
being translated. It is the format of guide-installation.xliff, the first attachment from our
fictional client, Cascade Pumps Inc.: the content of their website, extracted
for translation and meant to go back.
Main characteristics:
- bilingual: one language pair per file, unlike TMX;
- workflow-oriented: each segment records its status;
- built for the round trip: it takes along what is needed to rebuild the original document.
Simplified excerpt:
<unit id="u12">
<segment state="translated">
<source>Install the centrifugal pump on a level surface.</source>
<target>Installez la pompe centrifuge sur une surface plane.</target>
</segment>
</unit><unit> groups the content of one place in the original document; <segment>
pairs a source with a target and gives its status (initial, translated,
reviewed, final); <source> and <target> contain the texts. The complete
file adds an <xliff> root, which declares the two languages and the
standard’s namespace namespaceespace de noms XMLXML A name, written as a URI, that says which vocabulary an element or attribute belongs to.Nom, écrit sous la forme d'un URI, qui indique à quel vocabulaire appartient un élément ou un attribut. , and one <file> element elementélément XMLXML The building block of an XML document: an opening tag, the content it delimits and a closing tag, or a single empty-element tag when there is no content.Unité de base d'un document XML : une balise ouvrante, le contenu qu'elle délimite et une balise fermante, ou une seule balise d'élément vide quand il n'y a pas de contenu. per original file.
XLIFF or TMX?
Both put a source text beside its translation, which is why they get confused, but they answer different questions. A TMX Translation Memory eXchange (TMX)Translation Memory eXchange (TMX) exchange formatsformats d'échange The XML-based standard format for exchanging translation memories between CAT tools: a TMX file contains translation units whose language variants can cover any number of languages.Format normalisé, fondé sur XML, pour échanger des mémoires de traduction entre outils de TAO : un fichier TMX contient des unités de traduction dont les variantes peuvent couvrir un nombre illimité de langues. file is a store of translations already made: its units come from any number of documents and any number of projects, there is no order to read them in and no state of work, one file takes any number of languages, and the whole point is that a tool can search it for matches. An XLIFF file is one document being translated right now: one language pair, the segments in the order they appear in the document, a status on each, and everything the original file needs to be put back together.
The short version: a TMX is what you have translated before, an XLIFF is what you are translating now. The two meet at the end of a job, when the finished segments of an XLIFF go into a memory that a later project exports as TMX. It does not work the other way: a memory is not a document, so there is nothing to rebuild.
The round trip
Taking the text out of a web page, translating it, then rebuilding the page: that is what XLIFF exists to make possible. So there is more in it than sentences. It takes along the inline tags inline tagbalise interne CAT toolsTAO A marker inside a segment standing for formatting or a code of the original document, a bold run or a footnote reference for instance, rather than for text to translate.Marqueur placé à l'intérieur d'un segment qui représente une mise en forme ou un code du document d'origine, par exemple un passage en gras ou un appel de note, et non du texte à traduire. and the codes of the original file, and it can take along the skeleton, meaning whatever in the starting file is not to be translated but has to come back in its place.
The result still depends on the tool: the tool decides what it extracts, what it puts in the skeleton and how it puts everything back together. Two tools starting from the same HTML HyperText Markup Language (HTML)langage HTML (HTML) markupbalisage The markup language of web pages: a vocabulary of elements laid down by a standard, marking headings, paragraphs, links, images and the rest, which a browser renders.Langage de balisage des pages web : un vocabulaire d'éléments fixé par une norme, qui marque les titres, les paragraphes, les liens, les images et le reste, et qu'un navigateur affiche. file do not produce the same XLIFF.
XLIFF n’échange pas des ressources linguistiques (mémoires, termes) mais du
contenu en cours de traduction. C’est le format de guide-installation.xliff,
la première pièce jointe de notre client fictif, Cascade Pumps Inc. : le contenu de son site web, extrait
pour la traduction et destiné à y retourner.
Caractéristiques principales :
- bilingue : une paire de langues par fichier, contrairement à TMX ;
- orienté flux de travail : chaque segment porte son état d’avancement ;
- fait pour l’aller-retour : il emporte de quoi reconstruire le document de départ.
Extrait simplifié :
<unit id="u12">
<segment state="translated">
<source>Install the centrifugal pump on a level surface.</source>
<target>Installez la pompe centrifuge sur une surface plane.</target>
</segment>
</unit><unit> regroupe le contenu d’un même endroit du document d’origine ;
<segment> associe une source à une cible et donne son état (initial, translated,
reviewed, final) ; <source> et <target> contiennent les textes. Le
fichier complet ajoute une racine <xliff>, qui déclare les deux langues et
l’espace de noms namespaceespace de noms XMLXML A name, written as a URI, that says which vocabulary an element or attribute belongs to.Nom, écrit sous la forme d'un URI, qui indique à quel vocabulaire appartient un élément ou un attribut. de la norme, et un élément elementélément XMLXML The building block of an XML document: an opening tag, the content it delimits and a closing tag, or a single empty-element tag when there is no content.Unité de base d'un document XML : une balise ouvrante, le contenu qu'elle délimite et une balise fermante, ou une seule balise d'élément vide quand il n'y a pas de contenu. <file> par fichier d’origine.
XLIFF ou TMX ?
Les deux placent un texte source à côté de sa traduction, d’où la confusion, mais ils ne répondent pas à la même question. Un fichier TMX Translation Memory eXchange (TMX)Translation Memory eXchange (TMX) exchange formatsformats d'échange The XML-based standard format for exchanging translation memories between CAT tools: a TMX file contains translation units whose language variants can cover any number of languages.Format normalisé, fondé sur XML, pour échanger des mémoires de traduction entre outils de TAO : un fichier TMX contient des unités de traduction dont les variantes peuvent couvrir un nombre illimité de langues. est une réserve de traductions déjà faites : ses unités peuvent venir d’un nombre quelconque de documents et de projets, il n’y a ni ordre de lecture ni état d’avancement, un même fichier accepte autant de langues qu’on veut, et tout l’intérêt est qu’un outil puisse y chercher des correspondances. Un fichier XLIFF est un document en cours de traduction : une seule paire de langues, les segments dans l’ordre où ils apparaissent dans le document, un état sur chacun, et tout ce qu’il faut pour reconstruire le fichier d’origine.
En bref : le TMX, c’est ce que vous avez déjà traduit ; le XLIFF, ce que vous traduisez maintenant. Les deux se rejoignent en fin de projet, quand les segments terminés d’un XLIFF entrent dans une mémoire qu’un projet ultérieur exportera en TMX. L’inverse ne marche pas : une mémoire n’est pas un document, il n’y a donc rien à reconstruire.
L’aller-retour
Extraire le texte d’une page web, le traduire, puis reconstruire la page : voilà ce que XLIFF est fait pour permettre. Il ne transporte donc pas que des phrases. Il emporte les balises internes inline tagbalise interne CAT toolsTAO A marker inside a segment standing for formatting or a code of the original document, a bold run or a footnote reference for instance, rather than for text to translate.Marqueur placé à l'intérieur d'un segment qui représente une mise en forme ou un code du document d'origine, par exemple un passage en gras ou un appel de note, et non du texte à traduire. et les codes du fichier d’origine, et il peut emporter le squelette (skeleton), c’est-à-dire ce qui, dans le fichier de départ, n’est pas à traduire mais doit revenir à sa place.
Le résultat dépend malgré tout de l’outil : c’est lui qui décide ce qu’il extrait, ce qu’il range dans le squelette et comment il recolle le tout. Deux outils partant du même fichier HTML HyperText Markup Language (HTML)langage HTML (HTML) markupbalisage The markup language of web pages: a vocabulary of elements laid down by a standard, marking headings, paragraphs, links, images and the rest, which a browser renders.Langage de balisage des pages web : un vocabulaire d'éléments fixé par une norme, qui marque les titres, les paragraphes, les liens, les images et le reste, et qu'un navigateur affiche. ne produisent pas le même XLIFF.
Sources
- OASIS (2025). XLIFF Version 2.2. Organization for the Advancement of Structured Information Standards, Committee Specification 01. https://www.oasis-open.org/standard/xliff-v2-2-cs01/
- GALA (Globalization and Localization Association) (2005). TMX 1.4b Specification. https://resources.gala-global.org/tbx14b/
- ISO (2024). ISO 21720:2024. XLIFF (XML Localization Interchange File Format) — Version 2.1. International Organization for Standardization. https://www.iso.org/standard/87344.html
- Raya, R. (2004). XML in localisation: Use XLIFF to translate documents. Maxprograms. https://www.maxprograms.com/articles/xliff.html
- Microsoft Learn (n.d.). Localization file formats. https://learn.microsoft.com/en-us/globalization/localization/localization-file-formats
- Microsoft Learn (n.d.). Exchanging localizable resources. https://learn.microsoft.com/en-us/globalization/localization/exchanging-localizable-resources
Sources
- OASIS (2025). XLIFF Version 2.2. Organization for the Advancement of Structured Information Standards, Committee Specification 01. https://www.oasis-open.org/standard/xliff-v2-2-cs01/
- GALA (Globalization and Localization Association) (2005). TMX 1.4b Specification. https://resources.gala-global.org/tbx14b/
- ISO (2024). ISO 21720:2024. XLIFF (XML Localization Interchange File Format) — Version 2.1. International Organization for Standardization. https://www.iso.org/standard/87344.html
- Raya, R. (2004). XML in localisation: Use XLIFF to translate documents. Maxprograms. https://www.maxprograms.com/articles/xliff.html
- Microsoft Learn (n.d.). Localization file formats. https://learn.microsoft.com/en-us/globalization/localization/localization-file-formats
- Microsoft Learn (n.d.). Exchanging localizable resources. https://learn.microsoft.com/en-us/globalization/localization/exchanging-localizable-resources