Projects/XliffPoTools

Introduction

XLIFF PO Tools is a set of utilities to support conversion between the PO and XLIFF file formats.

{i} This project is in a process of change at the moment, and will be renamed to Xliffize in the coming months, providing much the same functionality as intltool - but using XLIFF as a common localisation resource format.

The following tools are being developed:

These conversion tools aims to follow the guidelines set by the XLIFF PO Guide.

At present (March 8th 2005), only po2xliff and xliff2po is available in CVS.

For download and CVS instructions, see Download.

Proposed Workflow

http://xliff-tools.freedesktop.org/images/xliffize-gettext.png

  1. Extract messages from source-code to PO using xgettext
  2. Create a XLIFF template from the PO file
    •  $ po2xliff --template example.po example.xlf 

  3. initialize [a] or update [b] the XLIFF file for each target language:
    • [a]  $ xliffinit --lang=nb-NO example.xlf example_no.xlf 

      [b]  $ xliffmerge example_no.xlf example.xlf 

  4. Pre-translate file (adding alt-trans elements) using Translation Memory.
  5. Send file to translators for translation.
  6. Convert the translated XLIFF file back to PO
    •  $ xliff2po example_no.xlf nb_NO/example.po

  7. Create a MO file from the translated PO file
  8. Use MO file to load messages at runtime.