jquery.ui.datepicker.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Chinese initialisation for the jQuery UI date picker plugin. */
  2. /* Written by Cloudream (cloudream@gmail.com). */
  3. ( function( factory ) {
  4. "use strict";
  5. if ( typeof define === "function" && define.amd ) {
  6. // AMD. Register as an anonymous module.
  7. define( [ "../widgets/datepicker" ], factory );
  8. } else {
  9. // Browser globals
  10. factory( jQuery.datepicker );
  11. }
  12. } )( function( datepicker ) {
  13. "use strict";
  14. datepicker.regional[ "zh-CN" ] = {
  15. closeText: "关闭",
  16. prevText: "上月",
  17. nextText: "下月",
  18. currentText: "今天",
  19. monthNames: [ "一月", "二月", "三月", "四月", "五月", "六月",
  20. "七月", "八月", "九月", "十月", "十一月", "十二月" ],
  21. monthNamesShort: [ "一月", "二月", "三月", "四月", "五月", "六月",
  22. "七月", "八月", "九月", "十月", "十一月", "十二月" ],
  23. dayNames: [ "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" ],
  24. dayNamesShort: [ "周日", "周一", "周二", "周三", "周四", "周五", "周六" ],
  25. dayNamesMin: [ "日", "一", "二", "三", "四", "五", "六" ],
  26. weekHeader: "周",
  27. dateFormat: "yy-mm-dd",
  28. firstDay: 1,
  29. isRTL: false,
  30. showMonthAfterYear: true,
  31. yearSuffix: "年" };
  32. datepicker.setDefaults( datepicker.regional[ "zh-CN" ] );
  33. return datepicker.regional[ "zh-CN" ];
  34. } );