Multilanguage calendar...

  • Thread starter Thread starter Stu
  • Start date Start date
S

Stu

Hi,

I am nearing the end of a multilanguage conversion and have just come across
a page which has a calendar control on it that needs translating. The
current language of the site is stored in a session variable as we need to
be able to swicth language regardless of the browser settings.

Does the asp.net calendar control support multi-language? If so - how?

Thanks in advance,

Stu

PS. We are probably moving to .Net 2.0 soon - so if that makes it easier....
 
I have tried a calendar control on asp.net 2.0, by setting the Culture="auto"
UICulture="auto†in the page directive and I get the calendar days displayed
according to the language specified in the browser setting. Here is a demo
in asp.net 2.0: http://www.webswapp.com/demos/autoculture.aspx

Try it by setting your browser Tools->Internet Options->Languages to
different cultures and you should see the calendar display changes
accordingly whenever you click on a date.
 
I forgot also to mention that you can also override the Auto Culture option
in the code by assigning the Page.Culture to any other value. I add a
dropdownlist to the demo to switch to any other language.
 
Back
Top