提交 | 用户 | 时间
|
58d006
|
1 |
/** |
A |
2 |
* jqGrid Chinese Translation |
|
3 |
* 咖啡兔 yanhonglei@gmail.com |
|
4 |
* http://www.kafeitu.me |
|
5 |
* Dual licensed under the MIT and GPL licenses: |
|
6 |
* http://www.opensource.org/licenses/mit-license.php |
|
7 |
* http://www.gnu.org/licenses/gpl.html |
|
8 |
**/ |
|
9 |
/*global jQuery, define */ |
|
10 |
(function( factory ) { |
|
11 |
"use strict"; |
|
12 |
if ( typeof define === "function" && define.amd ) { |
|
13 |
// AMD. Register as an anonymous module. |
|
14 |
define([ |
|
15 |
"jquery", |
|
16 |
"../grid.base" |
|
17 |
], factory ); |
|
18 |
} else { |
|
19 |
// Browser globals |
|
20 |
factory( jQuery ); |
|
21 |
} |
|
22 |
}(function( $ ) { |
|
23 |
|
|
24 |
$.jgrid = $.jgrid || {}; |
|
25 |
if(!$.jgrid.hasOwnProperty("regional")) { |
|
26 |
$.jgrid.regional = []; |
|
27 |
} |
|
28 |
$.jgrid.regional["cn"] = { |
|
29 |
defaults : { |
|
30 |
recordtext: "{0} - {1}\u3000共 {2} 条", // 共字前是全角空格 |
|
31 |
emptyrecords: "无数据显示", |
|
32 |
loadtext: "读取中...", |
|
33 |
savetext: "Saving...", |
|
34 |
pgtext : " {0} 共 {1} 页", |
|
35 |
pgfirst : "First Page", |
|
36 |
pglast : "Last Page", |
|
37 |
pgnext : "Next Page", |
|
38 |
pgprev : "Previous Page", |
|
39 |
pgrecs : "Records per Page", |
|
40 |
showhide: "Toggle Expand Collapse Grid", |
|
41 |
// mobile |
|
42 |
pagerCaption : "Grid::Page Settings", |
|
43 |
pageText : "Page:", |
|
44 |
recordPage : "Records per Page", |
|
45 |
nomorerecs : "No more records...", |
|
46 |
scrollPullup: "Pull up to load more...", |
|
47 |
scrollPulldown : "Pull down to refresh...", |
|
48 |
scrollRefresh : "Release to refresh..." |
|
49 |
}, |
|
50 |
search : { |
|
51 |
caption: "搜索...", |
|
52 |
Find: "查找", |
|
53 |
Reset: "重置", |
|
54 |
odata: [{ oper:'eq', text:'等于\u3000\u3000'},{ oper:'ne', text:'不等\u3000\u3000'},{ oper:'lt', text:'小于\u3000\u3000'},{ oper:'le', text:'小于等于'},{ oper:'gt', text:'大于\u3000\u3000'},{ oper:'ge', text:'大于等于'},{ oper:'bw', text:'开始于'},{ oper:'bn', text:'不开始于'},{ oper:'in', text:'属于\u3000\u3000'},{ oper:'ni', text:'不属于'},{ oper:'ew', text:'结束于'},{ oper:'en', text:'不结束于'},{ oper:'cn', text:'包含\u3000\u3000'},{ oper:'nc', text:'不包含'},{ oper:'nu', text:'不存在'},{ oper:'nn', text:'存在'}], |
|
55 |
groupOps: [ { op: "AND", text: "所有" }, { op: "OR", text: "任一" } ], |
|
56 |
operandTitle : "Click to select search operation.", |
|
57 |
resetTitle : "Reset Search Value" |
|
58 |
}, |
|
59 |
edit : { |
|
60 |
addCaption: "添加记录", |
|
61 |
editCaption: "编辑记录", |
|
62 |
bSubmit: "提交", |
|
63 |
bCancel: "取消", |
|
64 |
bClose: "关闭", |
|
65 |
saveData: "数据已改变,是否保存?", |
|
66 |
bYes : "是", |
|
67 |
bNo : "否", |
|
68 |
bExit : "取消", |
|
69 |
msg: { |
|
70 |
required:"此字段必需", |
|
71 |
number:"请输入有效数字", |
|
72 |
minValue:"输值必须大于等于 ", |
|
73 |
maxValue:"输值必须小于等于 ", |
|
74 |
email: "这不是有效的e-mail地址", |
|
75 |
integer: "请输入有效整数", |
|
76 |
date: "请输入有效时间", |
|
77 |
url: "无效网址。前缀必须为 ('http://' 或 'https://')", |
|
78 |
nodefined : " 未定义!", |
|
79 |
novalue : " 需要返回值!", |
|
80 |
customarray : "自定义函数需要返回数组!", |
|
81 |
customfcheck : "必须有自定义函数!" |
|
82 |
} |
|
83 |
}, |
|
84 |
view : { |
|
85 |
caption: "查看记录", |
|
86 |
bClose: "关闭" |
|
87 |
}, |
|
88 |
del : { |
|
89 |
caption: "删除", |
|
90 |
msg: "删除所选记录?", |
|
91 |
bSubmit: "删除", |
|
92 |
bCancel: "取消" |
|
93 |
}, |
|
94 |
nav : { |
|
95 |
edittext: "", |
|
96 |
edittitle: "编辑所选记录", |
|
97 |
addtext:"", |
|
98 |
addtitle: "添加新记录", |
|
99 |
deltext: "", |
|
100 |
deltitle: "删除所选记录", |
|
101 |
searchtext: "", |
|
102 |
searchtitle: "查找", |
|
103 |
refreshtext: "", |
|
104 |
refreshtitle: "刷新表格", |
|
105 |
alertcap: "注意", |
|
106 |
alerttext: "请选择记录", |
|
107 |
viewtext: "", |
|
108 |
viewtitle: "查看所选记录", |
|
109 |
savetext: "", |
|
110 |
savetitle: "Save row", |
|
111 |
canceltext: "", |
|
112 |
canceltitle : "Cancel row editing", |
|
113 |
selectcaption : "Actions..." |
|
114 |
}, |
|
115 |
col : { |
|
116 |
caption: "选择列", |
|
117 |
bSubmit: "确定", |
|
118 |
bCancel: "取消" |
|
119 |
}, |
|
120 |
errors : { |
|
121 |
errcap : "错误", |
|
122 |
nourl : "没有设置url", |
|
123 |
norecords: "没有要处理的记录", |
|
124 |
model : "colNames 和 colModel 长度不等!" |
|
125 |
}, |
|
126 |
formatter : { |
|
127 |
integer : {thousandsSeparator: ",", defaultValue: '0'}, |
|
128 |
number : {decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, defaultValue: '0.00'}, |
|
129 |
currency : {decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, |
|
130 |
date : { |
|
131 |
dayNames: [ |
|
132 |
"日", "一", "二", "三", "四", "五", "六", |
|
133 |
"星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", |
|
134 |
], |
|
135 |
monthNames: [ |
|
136 |
"一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二", |
|
137 |
"一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月" |
|
138 |
], |
|
139 |
AmPm : ["am","pm","上午","下午"], |
|
140 |
S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th';}, |
|
141 |
srcformat: 'Y-m-d', |
|
142 |
newformat: 'Y-m-d', |
|
143 |
parseRe : /[#%\\\/:_;.,\t\s-]/, |
|
144 |
masks : { |
|
145 |
// see http://php.net/manual/en/function.date.php for PHP format used in jqGrid |
|
146 |
// and see http://docs.jquery.com/UI/Datepicker/formatDate |
|
147 |
// and https://github.com/jquery/globalize#dates for alternative formats used frequently |
|
148 |
// one can find on https://github.com/jquery/globalize/tree/master/lib/cultures many |
|
149 |
// information about date, time, numbers and currency formats used in different countries |
|
150 |
// one should just convert the information in PHP format |
|
151 |
ISO8601Long:"Y-m-d H:i:s", |
|
152 |
ISO8601Short:"Y-m-d", |
|
153 |
// short date: |
|
154 |
// n - Numeric representation of a month, without leading zeros |
|
155 |
// j - Day of the month without leading zeros |
|
156 |
// Y - A full numeric representation of a year, 4 digits |
|
157 |
// example: 3/1/2012 which means 1 March 2012 |
|
158 |
ShortDate: "n/j/Y", // in jQuery UI Datepicker: "M/d/yyyy" |
|
159 |
// long date: |
|
160 |
// l - A full textual representation of the day of the week |
|
161 |
// F - A full textual representation of a month |
|
162 |
// d - Day of the month, 2 digits with leading zeros |
|
163 |
// Y - A full numeric representation of a year, 4 digits |
|
164 |
LongDate: "l, F d, Y", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy" |
|
165 |
// long date with long time: |
|
166 |
// l - A full textual representation of the day of the week |
|
167 |
// F - A full textual representation of a month |
|
168 |
// d - Day of the month, 2 digits with leading zeros |
|
169 |
// Y - A full numeric representation of a year, 4 digits |
|
170 |
// g - 12-hour format of an hour without leading zeros |
|
171 |
// i - Minutes with leading zeros |
|
172 |
// s - Seconds, with leading zeros |
|
173 |
// A - Uppercase Ante meridiem and Post meridiem (AM or PM) |
|
174 |
FullDateTime: "l, F d, Y g:i:s A", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy h:mm:ss tt" |
|
175 |
// month day: |
|
176 |
// F - A full textual representation of a month |
|
177 |
// d - Day of the month, 2 digits with leading zeros |
|
178 |
MonthDay: "F d", // in jQuery UI Datepicker: "MMMM dd" |
|
179 |
// short time (without seconds) |
|
180 |
// g - 12-hour format of an hour without leading zeros |
|
181 |
// i - Minutes with leading zeros |
|
182 |
// A - Uppercase Ante meridiem and Post meridiem (AM or PM) |
|
183 |
ShortTime: "g:i A", // in jQuery UI Datepicker: "h:mm tt" |
|
184 |
// long time (with seconds) |
|
185 |
// g - 12-hour format of an hour without leading zeros |
|
186 |
// i - Minutes with leading zeros |
|
187 |
// s - Seconds, with leading zeros |
|
188 |
// A - Uppercase Ante meridiem and Post meridiem (AM or PM) |
|
189 |
LongTime: "g:i:s A", // in jQuery UI Datepicker: "h:mm:ss tt" |
|
190 |
SortableDateTime: "Y-m-d\\TH:i:s", |
|
191 |
UniversalSortableDateTime: "Y-m-d H:i:sO", |
|
192 |
// month with year |
|
193 |
// Y - A full numeric representation of a year, 4 digits |
|
194 |
// F - A full textual representation of a month |
|
195 |
YearMonth: "F, Y" // in jQuery UI Datepicker: "MMMM, yyyy" |
|
196 |
}, |
|
197 |
reformatAfterEdit : false, |
|
198 |
userLocalTime : false |
|
199 |
}, |
|
200 |
baseLinkUrl: '', |
|
201 |
showAction: '', |
|
202 |
target: '', |
|
203 |
checkbox : {disabled:true}, |
|
204 |
idName : 'id' |
|
205 |
} |
|
206 |
}; |
|
207 |
})); |