-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I suggest to extend the rewrite router, or maybe the routes, so they
automatically take the language from the current active route.

Michał Minicki schrieb:
> Alex <[EMAIL PROTECTED]> napisał(a):
> 
>> I've implemented Zend_Translate but I would like to have unique urls for
>> different locales. Currently I set locale via a cookie.
>>
>> I would like the current locale appended to all urls. (...)
>> What would be the best way to implement this?
> 
> Just from the top of my head -> I would probably create all the routes with 
> :lang parameter, like:
> 
> :lang/:controller/:action/*
> :lang/archive/:year/:month
> 
> etc...
> 
> And then I would create a plugin which would be executed post routing to 
> initialize locale related stuff injecting needed information/objects into 
> request or to registry.
> 
>> - Alex
> 
> 
> 

- --
...................................
:  ___   _   ___ ___ ___ _ ___    :
: |   \ /_\ / __| _ \ _ (_)   \   :
: | |) / _ \\__ \  _/   / | |) |  :
: |___/_/:\_\___/_| |_|_\_|___/   :
:........:........................:
: Web    : http://www.dasprids.de :
: E-mail : [EMAIL PROTECTED]       :
: Jabber : [EMAIL PROTECTED]     :
: ICQ    : 105677955              :
:........:........................:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIR65r0HfT5Ws789ARAimJAJ4oQsO7NRW3f4Lth6Z/OVKxOuZudgCgwNnd
JqQYpftB80Ze69Htpkdvjdo=
=f5tY
-----END PGP SIGNATURE-----

Reply via email to