When using Zend_Translate, what is the best way to get the user's language preference?
I have made a custom route '/:language/:controller/:action' and like the look of the url this creates. Then in my base controller, I get the language param and make sure it is one of the languages I have translated, then I get the translate object from the registry and set it's locale based on this. This seems to work, but I'm not convinced it is the best way. Also is is possible to use the default route all the time, except when a language other than english has been choosen? For example, the default route always displays english unless example.com/fr/ is typed in or linked, then the language route kicks in? Thanks.
