Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 04, 2011 08:28 AM by wangping827123
0 Points
3 Posts
Oct 28, 2011 03:48 PM|LINK
Hi,
I need to set the specific culture using only the region code.
E.G. using region code JP (Japan), set the Culture to ja-JP
This question is not about using browser language or automatically setting the culture, I specifically need to set it using the region code.
I am actually trying to follow this tutorial http://www.sitepoint.com/geoip-targetting/, however, unless I am going crazy, the following could never work!
CountryLookup cl = new CountryLookup(Server.MapPath("GeoIP.dat"));
strCulture = cl.lookupCountryCode(Request.UserHostAddress); //Sets the region code
CultureInfo userCulture = new CultureInfo.CreateSpecificCulture(strCulture); //Tries to create a culture by region code???!!
Member
738 Points
145 Posts
Nov 04, 2011 08:28 AM|LINK
hi,
it is a third party issue, leave a comment in that tutorial.
coolcalimba
0 Points
3 Posts
Set specific culture by region code?
Oct 28, 2011 03:48 PM|LINK
Hi,
I need to set the specific culture using only the region code.
E.G. using region code JP (Japan), set the Culture to ja-JP
This question is not about using browser language or automatically setting the culture, I specifically need to set it using the region code.
I am actually trying to follow this tutorial http://www.sitepoint.com/geoip-targetting/, however, unless I am going crazy, the following could never work!
CountryLookup cl = new CountryLookup(Server.MapPath("GeoIP.dat"));
strCulture = cl.lookupCountryCode(Request.UserHostAddress); //Sets the region code
CultureInfo userCulture = new CultureInfo.CreateSpecificCulture(strCulture); //Tries to create a culture by region code???!!
wangping8271...
Member
738 Points
145 Posts
Re: Set specific culture by region code?
Nov 04, 2011 08:28 AM|LINK
hi,
it is a third party issue, leave a comment in that tutorial.