I would like to have internationalized urls for a better user experience (All in intranets, so no SEO to worry about).
So basically i would like URLS like this (in this example, english, dutch and french):
/en/products
/en/product/123/blue-box
/nl/producten
/nl/product/123/blauwe-doos
/fr/produits
/fr/produit/123/boite-bleue
The /nl/
part is no problem at all and described all over SO and the internet. But my problem is with routing to the controllers and actions.
Currently i have extended from the default router and used Zend_Translate to translate everything to english and have controllers and actions based on the english names.
However i keep having the feeling that there should be a better way to do this. Does anyone know if there are standard components in zend framework for this or had perhaps already created something like this before.
specs:
PHP 5.4.4
Zend Framework 1.11.10