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