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