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

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top