|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Multilanguage calendar...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. Show quoteHide quote "Stu" wrote: > 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 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. Show quoteHide quote "Phillip Williams" wrote: > 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. > -- > HTH, > Phillip Williams > http://www.societopia.net > http://www.webswapp.com > > > "Stu" wrote: > > > 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.... > > > > > > Many thanks - that sorted it.
Show quoteHide quote "Phillip Williams" <Phillip.Willi***@webswapp.com> wrote in message news:DC7F29E3-3A94-4108-B469-A25328CC9D5F@microsoft.com... >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. > -- > HTH, > Phillip Williams > http://www.societopia.net > http://www.webswapp.com > > > "Phillip Williams" wrote: > >> 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. >> -- >> HTH, >> Phillip Williams >> http://www.societopia.net >> http://www.webswapp.com >> >> >> "Stu" wrote: >> >> > 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.... >> > >> > >> >
Other interesting topics
|
|||||||||||||||||||||||