0

I have a tmx file with multiple languages defined for each term, and I can't find any way to convert it into individual anything -- gettext, php arrays, anything. My translation service does not let me download it in other formats (other than one per line plaintext without any keys, but that's a whole other problem).

I've only seen a po2tmx utility, not the other way around. Zend Framework 2's Zend\I18n documentation says it supports Tmx and Xliff, but it seems to.. not. I have no idea why, but

Is there any way at all I can convert this into some kind of usable format or do I have to end up writing some kind of weird thing that uses SimpleXML?

PaulProgrammer
  • 16,175
  • 4
  • 39
  • 56
Dylan
  • 17
  • 6
  • [http://www.wazzo.ca](http://www.wazzo.ca) allows the conversion of any TMX file to an HTML table –  Mar 28 '14 at 13:50

1 Answers1

1

This converter can import TMX files containing up to two languages, and has various download options including PHP and PO files.

The API will also convert a TMX file to PHP Zend format as follows (using command line cURL):

 $ curl --data-binary @file.tmx 'http://localise.biz/api/convert/tmx/file.phps'
Tim
  • 8,036
  • 2
  • 36
  • 52
  • It seems to only be taking the first language in the `` (which is en, then de), regardless of what I pass: http://sebsauvage.net/paste/?23409f045e8ab674#9takIyLRsMx+AtsxKg4rivvpxKRpHXXyzqeo8GmpeXA= – Dylan Jul 15 '13 at 21:56
  • I contacted them in any case, thanks for telling me about that. As much as I dislike depending on things that may or may not disappear, it looks like I have no other choice.. – Dylan Jul 15 '13 at 22:08