Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi All,
Is there a way in umbraco to make a Multilingual Website be redirected to its culture on browser language detection??
That is if my browser Langugage is set to English it will be directed to www.domain.com/en and if french be redirected to www.domain.com/fr ??
Any suggestion on this please?
//fuji
HttpContext.Current.Request.UserLanguages; will give you an array of accepting languages from the browser.
From Immediate window
HttpContext.Current.Request.UserLanguages{string[3]} [0]: "en-GB" [1]: "en;q=0.8" [2]: "en-US;q=0.6"
I suppose this could be integrated into a control that sits on the homepage to perform the redirect. I'd love to here of better suggestions though.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Browser Language Detection
Hi All,
Is there a way in umbraco to make a Multilingual Website be redirected to its culture on browser language detection??
That is if my browser Langugage is set to English it will be directed to www.domain.com/en and if french be redirected to www.domain.com/fr ??
Any suggestion on this please?
//fuji
HttpContext.Current.Request.UserLanguages; will give you an array of accepting languages from the browser.
From Immediate window
I suppose this could be integrated into a control that sits on the homepage to perform the redirect. I'd love to here of better suggestions though.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.