ZF-7298: Zend_Controller_Router_Route_Module doesn't have Translate abilities

Issue Type: Improvement Created: 2009-07-17T03:39:01.000+0000 Last Updated: 2011-02-12T06:52:44.000+0000 Status: Open Fix version(s): Reporter: Adam Kusmierz (raistlin) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Controller

Related issues: Attachments: - Zend_Controller_Router_Route_Module.patch


You can't translate default Route (Route_Module), because it doesn't have abilities to do it. Additionaly, you can't use other route as default , which can translate, because only Route_Module handle right requests (as /[module/][controller/][action/], where everything is optional, module too).


Posted by Adam Kusmierz (raistlin) on 2009-07-17T03:43:09.000+0000

Default, my patch doesn't change anything. If you change default route to something like:

'default' => array(
    'type' => 'Zend_Controller_Router_Route_Module',
    'dispatcher' => null,
    'request' => null,
    'translatable' => true

you get abilities to translate default route. I think there should be also static method changing this ability (ie. Zend_Controller_Router_Route_Module::setTranslate(bool); )

Posted by Thomas Weidner (thomas) on 2009-07-17T04:41:42.000+0000

Deleting Zend_Translate as effected component because this is no Zend_Translate issue.

Posted by Hugo (huhu) on 2010-03-27T03:51:30.000+0000

The provided patch does not work correctly when matching translated modules. I adapted it so that it also correctly handles translated module names and attached a new patch.

Posted by Hugo (huhu) on 2010-03-27T03:52:20.000+0000

This patch replaces the previous one, which did not match translated module names.

Posted by Benoit Sagols (bsagols) on 2010-05-18T04:19:10.000+0000

hi, do we know in which release the patch will be included? Is the patch safe for production environment? thx - benoit

Posted by Benoit Sagols (bsagols) on 2010-05-31T07:43:05.000+0000

Hi I'm using the patch in production, so far so good. I had to make a little change in the code although. Instead of defaulting _translatable to false in the __contruct method, I've set it to true and now everything works fine. I don't quite undestancd what _translatable is for...

As in Zend_Controller_Router_Route_Module patch, this is set to false in the constructor and never again manipulated afterwards... On the contrary in Zend_Controller_Router_Route, the similar variable _translatable is initialized in the contructor, looking for segments to translate in the url (looking for "@" sign...).

Hope this helps.

Posted by Robert (rs) on 2010-06-11T09:44:05.000+0000


this issue exists nearly a year, an nobody seems really to care.

i don't get it, actually this is a basic functionality and should be handled on major priority.

I also posted a, from my perspective, major issue affecting the basic JSON serialization. ( This was fixed after nearly 3 month. This is a completely unacceptable timeframe for every kind of project.

I don't know if you guys are payed by zend or if you doing it for fun in your freetime, but by next project will not base on the ZF.

br robert

Posted by Hugo (huhu) on 2011-02-12T06:52:39.000+0000

When is this going to be fixed? It does not only affect version 1.8.4, but all version up to and including 1.11.3.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.