We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

culture of month calendar

Thread ID:

Created:

Updated:

Platform:

Replies:

49848 Sep 28,2006 10:06 AM UTC Sep 29,2006 07:18 AM UTC WinForms 2
loading
Tags: Tools
ks kee
Asked On September 28, 2006 10:06 AM UTC

Hi, i met a problem when i want to set the culture of month calendat as chinese simplified.
Is it no allow to set to the culture?

ps: i realise that got same problem when select english

thanks first :)

culture0.zip

Purusothaman R [Syncfusion]
Replied On September 28, 2006 05:16 PM UTC

Hi Kee,

The .NET framework supports only specific cultures to be assigned to the application thread and controls. Neutral cultures can''t be used for localization.

Specific culture is a culture that is associated with a language and a country/region. For example, "en" is a neutral culture and "en-US" is a specific culture.

But, exceptionally "zh-CHS" (Simplified Chinese) and "zh-CHT" (Traditional Chinese) are neutral cultures. Try setting English-United States (en-US) as the culture instead of English(en) for the MonthCalendar control.

Thanks,
Purusothaman.R

Anupama Roy [Syncfusion]
Replied On September 29, 2006 07:18 AM UTC

Hi Kee,


As a workaround for the neutral cultures having a specific culture associated within the .NET Framework,we can use CreateSpecificCulture method to get the associated culture as shown below .

System.Threading.Thread.CurrentThread.CurrentCulture =System.Globalization.CultureInfo.CreateSpecificCulture("en");
this.monthCalendarAdv1.Culture = System.Globalization.CultureInfo.CurrentCulture;


However, the cultures (Simplified Chinese) and (Traditional Chinese) contradict this rule as they have no specific culture available in .net framework.

Feel free to update this post if you have any queries.

Best Regards,

Anu.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;