Question

I want to convert any HTML file (including images and tables and CSS too) to XLIFF. I would appreciate if some can tell me how to do this. Please provide some sample example code.

Was it helpful?

Solution

In addition to the fine tools mentioned above the translation suite "Transolution" also supports conversion of HTML/XML to XLIFF. It's hosting site have been down for some time but is now up again at this location: https://bitbucket.org/fredrik_corneliusson/transolution/overview

Transolution runs on both Windows and Linux.

You can find documentation about the filter here: https://bitbucket.org/fredrik_corneliusson/transolution/src/tip/doc/filters.rst?at=default

As the filter is a command line tool it would be quite easy to call it from code to programatically do the conversion.

OTHER TIPS

There are many translation tools like Trados Studio, OmegaT, Swordfish, etc. that can extract HTML into XLIFF (and merge back the translation). They won't 'convert' images though.

If you are more interested in just getting an XLIFF (as opposed to extract/translate/merge) you can also use Rainbow or Tikal from Okapi Framework. Now they also support HTML5 and ITS.

Translate Toolkit also provide support for HTML and Po to XLIFF conversion.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top