HI,
I'm having an issue with the localization of the calendar plugin. It
always default to the language of the latest js file I import. For
example, if I do that :
<script src="<% =ScriptsRoot %>Calendar/ui.core.js" type="text/
javascript"></script>
<script src="<% =ScriptsRoot %>Calendar/ui.datepicker.js" type="text/
javascript"></script>
<script src="<% =ScriptsRoot %>Calendar/ui.datepicker-zh-CN.js"
type="text/javascript"></script>
<script src="<% =ScriptsRoot %>Calendar/ui.datepicker-fr.js"
type="text/javascript"></script>
It will default to French even though my code looks like :
$.datepicker.setDefaults({
duration: "fast",
showStatus: true,
dateFormat: "dd/mm/yy",
changeYear: true,
changeMonth: true
}, $.datepicker.regional['']);
$("#date").datepicker($.datepicker.regional['zh-CN']).attr
("readonly", "readonly");
if I move the Chinese js file before the French one, then it will be
in Chinese. However if I change the regional setting to 'fr', it will
remain in Chinese !
why is that ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---