zh-CHS and zh-CHT not recognised on CreateSpecificCulture?? RRS feed

  • Question

  • User-125436819 posted

    I have a multilanguage (18 languages) website. 16 of them (including japanese and korean) do not throw a runtime error on

    Thread.CurrentThread.CurrentUICulture = new CultureInfo(language);
    Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(language);

    Traditional and simplified chinese do, on the second line.

    Do I need to install something for those 2 to work?
    Or is there another way to set the Current



    Friday, April 28, 2006 6:11 AM

All replies

  • User-125436819 posted

    I've learned that zh-chs and zh-cht are neutral cultures.
    This means they don't have a specific culture. A specific culture is needed for stuff like NumberFormatInfo and others. So how does this work for these cultures?
    How are numbers and dates displayed?
    Or should I set zh-CN or some other as the specific culture?


    Friday, April 28, 2006 8:17 AM
  • User-1422796318 posted
    Shall we know what the runtime error is?
    Monday, May 1, 2006 4:52 AM
  • User-125436819 posted
    System.ArgumentException was unhandled by user code
      Message="Please select a specific culture, such as zh-CN, zh-HK, zh-TW, zh-MO, zh-SG."
           at System.Globalization.CultureInfo.CreateSpecificCulture(String name)
           at QuantumCall.Page_Load(Object sender, EventArgs e) in c:\Projecten\MicrosoftUpgradeWeb\TryOut\WebSite\QuantumCall.aspx.cs:line 92
           at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
           at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
           at System.Web.UI.Control.OnLoad(EventArgs e)
           at System.Web.UI.Control.LoadRecursive()
           at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Tuesday, May 2, 2006 4:12 AM