Hi. I noticed that CalendarExtender only works in English.
Although the Format parameter can customize the way it fills the textbox, there should be a way to display the calendar itself in other languages.
Since Ajax Extensions has everything needed to create a calendar in any language, it could have a property "Culture" that gets the current ASP.NET culture defined in web.config, or even no property at all, and just works like the Calendar in .NET, get the
current UICulture and voilá. Even the format gets the a default format depending on the language.
If you look at the source .js, you'll see that "Today" is a hardcoded string.
I also need to globalize my CalendarExtender but I can't use the ScriptManager globalization, I have to customize it to be able to edit the month and day names to whatever text the user wants. I've downloaded the .cs sourcecode in the toolkit but I'm a
bit lost on how to recompile a custom version of the Extender and get it to be visible when I try to add it to my toolbox.
I've made the changes to the calenderbehavior.js as told above. I implemented also the code from the very bottom of the thread
http://forums.asp.net/thread/1550012.aspx. Cause I'm very new to this stuff can anyone give me a clue how to recompile a DLL so that the changes take effekt.
nvivo
Member
44 Points
14 Posts
CalendarExtender and globalization.
Jan 26, 2007 11:05 PM|LINK
Hi. I noticed that CalendarExtender only works in English.
Although the Format parameter can customize the way it fills the textbox, there should be a way to display the calendar itself in other languages.
Since Ajax Extensions has everything needed to create a calendar in any language, it could have a property "Culture" that gets the current ASP.NET culture defined in web.config, or even no property at all, and just works like the Calendar in .NET, get the current UICulture and voilá. Even the format gets the a default format depending on the language.
thanks,.great job.
teyou
Member
4 Points
2 Posts
Re: CalendarExtender and globalization.
Jan 27, 2007 02:56 AM|LINK
Hi, [:)]
it Works!! [:D]
CalendarExtender
teyou
Member
4 Points
2 Posts
Re: CalendarExtender and globalization.
Jan 27, 2007 02:56 AM|LINK
Hi, [:)]
it Works!! [:D]
CalendarExtender
nvivo
Member
44 Points
14 Posts
Re: CalendarExtender and globalization.
Jan 28, 2007 10:10 AM|LINK
Hi. I tried your solution.
while the day names (mon, tue, etc) are translated, the header (January, 2007) and the footer (Today: January 28, 2007) are always in english.
Anything else?
djflex68
Member
2 Points
3 Posts
Re: CalendarExtender and globalization.
Jan 29, 2007 07:21 AM|LINK
I have the same problem. Day names are translated, the header and the footer are not.
MaritimeGirl
Member
6 Points
5 Posts
Re: CalendarExtender and globalization.
Jan 29, 2007 12:06 PM|LINK
If you look at the source .js, you'll see that "Today" is a hardcoded string.
I also need to globalize my CalendarExtender but I can't use the ScriptManager globalization, I have to customize it to be able to edit the month and day names to whatever text the user wants. I've downloaded the .cs sourcecode in the toolkit but I'm a bit lost on how to recompile a custom version of the Extender and get it to be visible when I try to add it to my toolbox.
VTP
Member
22 Points
11 Posts
Re: CalendarExtender and globalization.
Jan 29, 2007 04:44 PM|LINK
set the EnableGloblisation property of script manager true
and do the changes in calenderbehaviour.js
In particular, you must substitute this line in file CalendarBehavior.js:
1) this._title.innerHTML = visibleDate.format("MMMM, yyyy"); with
this._title.innerHTML = visibleDate.localeFormat("MMMM, yyyy");
2) dayCell.title = currentDate.format("D"); with
dayCell.title = currentDate.localeFormat("D");
3) this._today.innerHTML = "Today: " + todaysDate.format("MMMM d, yyyy"); with
this._today.innerHTML = "Today: " + todaysDate.localeFormat("MMMM d, yyyy");
Unfortunately, the string "Today" is mapped into the js file and it not parametrized.
And it's all done.
Bye, Thanks for the help to you all
kallem
Member
2 Points
3 Posts
Re: CalendarExtender and globalization.
Feb 22, 2007 08:41 AM|LINK
Sorry, stupid noob-question. [*-)]
Where can I find the calenderbehaviour.js?
Even in the sample app I can't find the file.
Thank you.
d.th
Member
36 Points
10 Posts
Re: CalendarExtender and globalization.
Feb 22, 2007 10:59 AM|LINK
It's compiled into the dll's resources. To change it you need to donwload the Toolkit's sources.
Then you either recompile or simply copy the CalendarBehaviour.js to your site and set it's path in the component's "ScriptPath" property.
----------------------
http://weblogs.asp.net/DamienThouvenin/
http://www.clt-services.com/
pvahrenholt
Member
2 Points
3 Posts
Re: CalendarExtender and globalization.
Feb 22, 2007 12:03 PM|LINK
Hi there,
I've made the changes to the calenderbehavior.js as told above. I implemented also the code from the very bottom of the thread http://forums.asp.net/thread/1550012.aspx. Cause I'm very new to this stuff can anyone give me a clue how to recompile a DLL so that the changes take effekt.
THX in advance