M
Matthias S.
Hi there,
I'm going to develop my first application (blog type of thing) using
MVC. Now I have a question about routing. I'd like to implement a
globalization pattern like this:
http://mydomain/en/about (for the english about page)
and
http://mydomain/de/about (for the german about page)
The language code (in the above case 'en' or 'de') should be persisted
to a cookie. Whenever a page is called which doesn't have the language
portion in the URL, I want to lookup the value in the cookie. If there
is no cookie, I'd like to lookup the language supported by the browser
and rebuild the url. After that, I'd write the cookie.
How would I set up routing for a scenario like this?
Thanks in advance!
Matthias
--
I'm going to develop my first application (blog type of thing) using
MVC. Now I have a question about routing. I'd like to implement a
globalization pattern like this:
http://mydomain/en/about (for the english about page)
and
http://mydomain/de/about (for the german about page)
The language code (in the above case 'en' or 'de') should be persisted
to a cookie. Whenever a page is called which doesn't have the language
portion in the URL, I want to lookup the value in the cookie. If there
is no cookie, I'd like to lookup the language supported by the browser
and rebuild the url. After that, I'd write the cookie.
How would I set up routing for a scenario like this?
Thanks in advance!
Matthias
--