Hi,
I'm developing a international website with Zend Framework 1.9.5 and I
would like to know something about translating the controller and
action names in the url.
I use Zend_Translate for translating things inside the controllers and
views. This is working just fine.
Now I want to translate the controller and action names in the url also.
I've read the documentation about
http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.standard.translated-segments
In the example a array adapter is used for the Translater. In my
project I have a Translater with a gettext adapter.
My translate is defined with:
$translate = new Zend_Translate('gettext', '../language', $locale,
array('scan' => Zend_Translate::LOCALE_DIRECTORY));
With the poedit program I produce a .mo file which is used for
translation.
I put this in my code to translate the controller and action names in
the url:
Zend_Controller_Router_Route::setTranslator($translate);
I have a Locale set and I put translation of the controller names in
the .po/.mo file, but when I view the site, the url is not translated.
Can someone help me please and explain how I can translate the
controller and action names in the url using my gettext Translator?
Best regards,
Laurens van Vliet