Probably need to assign it to System.Threading.Thread.CurrentThread.CurrentUICulture in your applications BeginRequest event.
You can read it from HttpContext.Current.Request.UserLanguages. Its a string array in order of the user's language preference. For example: ["en-AU", "en-GB", "en-US"]
Just take the first value and use it to the create an instance of CultureInfo.
Please see video at the following site http://www.pluralsight-training.net/microsoft/players/PSODPlayer?author=scott-allen&name=mvc3-building-infrastructure&mode=live&clip=0&course=aspdotnet-mvc3-intro at section Globalization, and Resource
jagadeesh.bo...
Member
147 Points
256 Posts
How to assign CultureInfo.InstalledUICulture to a webpage culture
Mar 07, 2012 04:38 AM|LINK
Dear,
Please any one tell me,
How to change the browser language culture to InstalledUICulture.
Thank You
Regards
jagadeesh
asp.net
worldspawn[]
Contributor
6081 Points
1336 Posts
Re: How to assign CultureInfo.InstalledUICulture to a webpage culture
Mar 07, 2012 09:30 AM|LINK
Probably need to assign it to System.Threading.Thread.CurrentThread.CurrentUICulture in your applications BeginRequest event.
You can read it from HttpContext.Current.Request.UserLanguages. Its a string array in order of the user's language preference. For example: ["en-AU", "en-GB", "en-US"]
Just take the first value and use it to the create an instance of CultureInfo.
http://msdn.microsoft.com/en-us/library/ky2chs3h.aspx
asp.net
"Wise man say 'forgiveness is divine, but never pay full price for late pizza." - TMNT
software development
jsiahaan
Contributor
2322 Points
596 Posts
Re: How to assign CultureInfo.InstalledUICulture to a webpage culture
Mar 07, 2012 02:44 PM|LINK
Hi,
Please see video at the following site http://www.pluralsight-training.net/microsoft/players/PSODPlayer?author=scott-allen&name=mvc3-building-infrastructure&mode=live&clip=0&course=aspdotnet-mvc3-intro at section Globalization, and Resource
Have fun
Indonesian Humanitarian Foundation