Click here to Skip to main content
15,886,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends. I want to change localization setting of yui calendar. it should be change its language by itself depending on user's computer language. i mean, dynamically. Thannks for your help.
Posted

The first thing that I must address, YUI is actually a client end calendar control that puts everything using javascript.

ASP.NET is actually a server side technology which ensures how the page is produced to the client.

ASP.NET supports globalization using Resource files. So prepare a resource file in your server, and whenever you parse the javascript, just place server tags <% %> to replace the localized strings with particular text you want.

No one built specific to YUI control as it is basically very specific to your work. Please take a look into :
http://www.codeproject.com/KB/aspnet/LocalizationPackage.asp[^]

And find out how it replaces text with appropriate resource keys.

Next take a look into :
http://developer.yahoo.com/yui/examples/calendar/germany.htm[^]

You can see YUI supports you to change text in calendar. You can specify MONTHS_LONG, WEEKDAYS_LONG using setProperty. Once you change the text from server side, the calendar will show this automatically.

I hope you could create this yourself.
Cheers. :thumbsup:
 
Share this answer
 
Thanks for your answer. I checked out your links, but inside them, localization in JavaScript is not explained. This is what i need. I will add calendar codes inside ASP page as JavaScript. And i think i should fix this problem inside JavaScript codes. I am looking forward to read any other ideas, links, sources etc. Because it is very important for me.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900