Convert PO to XLIFF

Turn PO files into XLIFF. An XLIFF 1.2 file for translation tools with one trans-unit per entry, the context as its resname, a plural entry as a group of trans-units, and each target's state as needs-translation, needs-review-translation for fuzzy, translated or final, with notes and source references.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

A catalog your translation tools can open.Each PO entry becomes a trans-unit in one XLIFF 1.2 file.

  1. What you get

    One XLIFF 1.2 file with one trans-unit for each entry in the PO or POT file. The context of an entry is kept as the resname of its trans-unit.

    A plural entry becomes a group of trans-units, so each plural form has its own place to translate.

  2. States and notes

    Each target gets a state: needs-translation, needs-review-translation, translated or final. An entry marked fuzzy in the PO file gets needs-review-translation, so a translator sees that it still needs a check.

    Notes and source references come along with their entries.

  3. What it leaves behind

    Obsolete entries are dropped. They do not appear in the XLIFF file.

PO and XLIFF.What each format is.

The formats

From · 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
To · 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

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

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

Questions.What people ask about PO to XLIFF.

01OF 04

Yes. The context becomes the resname of the trans-unit.

A plural entry becomes a group of trans-units, one for each plural form.

They get the state needs-review-translation, so they stay marked as needing review.

Yes. PO and POT files are both read, and the result is an XLIFF 1.2 file.

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