Convert XLIFF to PO

Turn XLIFF files into PO. A gettext PO file with each entry's context, source text and plural source, translation or plural forms, notes, translator comments, source references, flags and fuzzy mark, obsolete entries as #~ lines, and a header with the language and its plural rule.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop XLIFF files on the dialor turn it to pick what to do

A PO catalog from your XLIFF file.Entries, notes and fuzzy marks carry over into one gettext file.

  1. What you get

    One PO file with an entry for each message in the XLIFF. Each entry holds its context, source text and plural source, and its translation or plural forms.

    Notes, translator comments, source references and flags come across too, along with the fuzzy mark. Obsolete entries are written as #~ lines. The header gives the language and its plural rule.

  2. How codes and ids are handled

    Inline codes keep their text. An empty placeholder such as <x/> becomes its equiv-text. When it has no equiv-text, it is dropped.

    A trans-unit id that is only a number is not taken as a context. The entry then has no context from that id.

XLIFF and PO.What each format is.

The formats

From · XLIFF

XLIFF 1.2

XLIFF 1.2, the XML exchange format of translation tools, with trans-units, states and notes.

Extensions
.xlf .xliff
MIME type
application/xliff+xml
Kind
Text and data
To · PO

Gettext PO

Gettext translation catalogs and .pot templates, with each message's context, plural forms, notes and fuzzy mark.

Extensions
.po .pot
MIME type
text/x-gettext-translation
Kind
Text and data

In your code.The same XLIFF to PO conversion through the API, for your app or your agent.

terminal
$ cv convert report.xlf report.po
$ cv convert report.xlf report.po

Questions.What people ask about XLIFF to PO.

01OF 04

Yes. The fuzzy mark is kept on the entry in the PO file.

Yes. Each entry keeps its plural source and its plural forms, and the header gives the language's plural rule.

An empty placeholder becomes its equiv-text. If it has none, it is dropped.

No. A numeric id is not used as a context.

More conversions.Other ways in and out of XLIFF and PO.