Search code examples
phpzend-frameworkyamlzend-translate

YAML adapter for Zend_Translate?


Does anybody know a high-quality yaml adapter for Zend Framework's Zend_Translate?

There seems to be a proposal in the Zend project itself, but it's been inactive for years.


Solution

  • Not aware of an adapter. There is a Zend_Config Adapter for YAML files in the incubator though and PHP has a PECL extension for YAML. There is also the YAML Symfony Component. You could use those to convert your translation files to array and then pass that array to the array adapter, but then again, using one of the source formats might be more feasible then.