Last post Nov 04, 2011 04:28 AM by wangping827123
Oct 28, 2011 11:48 AM|coolcalimba|LINK
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???!!
Nov 04, 2011 04:28 AM|wangping827123|LINK
it is a third party issue, leave a comment in that tutorial.