views:

41

answers:

1

Hi,

I'm using Zend Framework 1.10.7 and I'm looking for a way to set the default translator. I know I could set it in Bootstrap.php but I would like to set it up in the configs.ini to gather most of my generic config.

I guess it needs to specify a registry key (registry_key ?).

By the way, does the Zend_Controller_Router use this default translator automatically or I need to explicitly use Zend_Controller_Router::setDefaultTranslator() ? And then, could it be done in the configs.ini yet ?

Thank you.

A: 

Well if you use the Zend_Application_Resource_Translate wont it take care of this for you? The default reg key is Zend_Translate.

i used this the one and only time ive used translation with Zend and it worked out pretty well for me, YMMV: http://blog.vandenbos.org/2009/07/09/zend-framework-per-module-translation-sources/

prodigitalson