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?

有帮助吗?

解决方案

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'
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top