Toggle between English and Simplified Chinese Text in Calendar

D

den 2005

Hi everybody,

I am creating a Calendar that changes its WeekDays Text and Month Text
display toggle between english and simplified chinese. I found some codes in
MSDN, is there anyone who can help me with this? Thanks.


Error Message:
"Culture 'zh-CHS' is a neutral culture. It cannot be used in formatting and
parsing and therefore cannot be set as the thread's current culture.


Code:
// Set the current culture to "zh-CHS"
CultureInfo sc = new CultureInfo("zs-CHS");
Thread.CurrentThread.CurrentCulture = sc; <<-- Error occur here

// Use the Hebrew calendar for date-and-time formatting
sc.DateTimeFormat.Calendar = new TaiwanCalendar();//Chinese Characters
suppose to be displayed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top