I am looking for a good solution for multilanguage sites.
I found different approaches:

http://www.zendcasts.com/introducing-zend_translate/2009/11/
http://www.m4d3l-network.com/2009/06/29/add-language-route-to-your-zend-framework-project/
http://robertbasic.com/blog/chaining-routes-in-zend-framework/

but i have some problems creating routes for my site.


I would like to use the standard router and my custom routes.
Some example:

Standard router
------------------------------------------------------------
domain.com/   =>  core/index/index , language=it
domain.com/en   =>  core/index/index , language=en
domain.com/en/core   =>  core/index/index , language=en
domain.com/en/core/about   =>  core/about/index , language=en
*core is the name of default module

Custom routes
------------------------------------------------------------
domain.com/page-name   =>  core/page/view, language=it, ident=page-name
domain.com/en/another-pagename => core/page/view, language=en, ident=another-pagename * "page-name" and "another-pagename" are unique strings i use to retrive pages from DB

domain.com/gallery/album-title => gallery/album/view , language=it, ident=album-title domain.com/en/gallery/another-album-title => gallery/album/view , language=en, ident=album-title

Is there on internet some tutorial or resource to achieve a similar routing?
I hope, someone can help me.

Thank, Antonio





Reply via email to