Projects/xlifftool


/!\ Please note that this package has not been maintained since June 2005. Feel free to experiment with it, but don't expect everything to work :)


Introduction

xlifftool is a set of utilities to support XLIFF in open source build systems and development processes.

The toolset currently only supports the Gettext PO format, but we aim to develop filters for other common file formats used in open source (including .desktop and XML based formats such as DocBook and Glade/Qt dialogs). In other words, xlifftool aims to become a replacement for intltool - but using XLIFF in the localisation process.

For download and CVS instructions, see Download.

xlifftool is maintained by AsgeirFrimannsson.

Gettext Support

The following tools are being developed to support GNU Gettext:

These conversion tools aims to follow the guidelines set by the XLIFF 1.1 Representation Guide for Gettext PO.

Proposed Workflow

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

  1. Extract messages from source-code to POT using xgettext
  2. Create a XLIFF template from the POT file
    •  $ po2xlf --template example.pot example.xlf 

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

      [b]  $ xlfpomerge example_no.xlf example.xlf 

  4. Optional further processing of the XLIFF file (e.g. adding alt-trans elements)
  5. Send file to translators for translation.
  6. Convert the translated XLIFF file back to PO
    •  $ xlf2po 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.