Search code examples
zend-framework2zend-translate

zf2 translation tmx support


The Zend Framework 2 documentation says that

The translator supports the following major translation formats:

  • PHP arrays
  • Gettext
  • Tmx
  • Xliff

I have a ZF1 application where I use Tmx format. However, after looking at the ZF2 source code it seems that Tmx may not be supported in ZF2. Can anyone verify this?


Solution

  • The documentation is in fact (currently) wrong. I've created a PR to have them updated to show that the following are available:

    • PHP Arrays
    • GetText
    • INI

    Many aspects of ZF2 have been rewritten from the ground up and the additional support was not included at this moment.

    You can find the current supported loaders here -> I18n Support Loaders