Description

An oft-used URL pattern for multi-lingual sites is to use the form '/:lang/...'. Currently, however, this is a difficult routing schema to achieve if you want to leave the flexibility to create a conventional modular site.

The suggestion is to create a route that extends the current Module route, and which takes an argument of a default language to use:

$router->addRoute('default', new Zend_Controller_Router_Route_Multilingual('de')); // default language is German

Comments

Postponing to 1.7.0; Martel and DASPRiD are working on a solution, part of which is included in 1.6, but the rest of which will happen for 1.7.0. At that time, we can easily add language-based routes.

Posted by Ben Scholzen (dasprid) on 2008-10-18T17:44:36.000+0000

I'm only responsible for the config- and hostname-part. Martel is the maintainer of the actual partial path chaining. As he is currently quite busy, I don't think that partial path chaining will make it into 1.7. Even 1.8 isn't really clear.