Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Objective:

To localize the Date Picker field to a specific language

Code:

The example below uses "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.

Code Block
<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>