Sunday, November 9, 2008

Globalization & Localization in ASP.NET

<strong><a href="http://www.blogger.com/post-edit.g?culture=en-US">English</a></strong> | 日本語 |<a href="http://www.blogger.com/post-edit.g?culture=zh-HK">中国</a> | Deutsch | 한국어


if (Request.QueryString["culture"] != null)
{
Session["Culture"] = Request.QueryString["culture"];
}

if (Session["Culture"] != null)
{

Thread.CurrentThread.CurrentUICulture = new CultureInfo(Session["Culture"].ToString());
Thread.CurrentThread.CurrentCulture = new CultureInfo(Session["Culture"].ToString());
}

No comments: