You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Problem

Change date picker field to localize language. 

Code

Example below use "zh-CN".

You can download the i18n jQuery library for date picker from http://code.google.com/p/listr/source/browse/#svn%2Ftrunk%2Flistr%2Flib%2Fjs%2Fui%2Fi18n

<script type="text/javascript" src="http://listr.googlecode.com/svn/trunk/listr/lib/js/ui/i18n/ui.datepicker-zh-CN.js" ></script>
<script type="text/javascript">
  $(document).ready(function(){
    $.datepicker.setDefaults($.datepicker.regional['zh-CN']);
  });
</script> 
  • No labels