culture of month calendar

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

2 Replies

PR Purusothaman R Syncfusion Team 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


AR Anupama Roy Syncfusion Team 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.

Loader.
Up arrow icon