1 | ;(function($){
|
---|
2 | /**
|
---|
3 | * jqGrid Chinese Translation for v4.2
|
---|
4 | * henryyan 2011.11.30
|
---|
5 | * http://www.wsria.com
|
---|
6 | * Dual licensed under the MIT and GPL licenses:
|
---|
7 | * http://www.opensource.org/licenses/mit-license.php
|
---|
8 | * http://www.gnu.org/licenses/gpl.html
|
---|
9 | *
|
---|
10 | * update 2011.11.30
|
---|
11 | * add double u3000 SPACE for search:odata to fix SEARCH box display err when narrow width from only use of eq/ne/cn/in/lt/gt operator under IE6/7
|
---|
12 | **/
|
---|
13 | $.jgrid = $.jgrid || {};
|
---|
14 | $.extend($.jgrid,{
|
---|
15 | defaults : {
|
---|
16 | recordtext: "{0} - {1}\u3000å
± {2} æ¡", // å
±å忝å
šè§ç©ºæ Œ
|
---|
17 | emptyrecords: "æ æ°æ®æŸç€º",
|
---|
18 | loadtext: "读åäž...",
|
---|
19 | pgtext : " {0} å
± {1} 页"
|
---|
20 | },
|
---|
21 | search : {
|
---|
22 | caption: "æçŽ¢...",
|
---|
23 | Find: "æ¥æŸ",
|
---|
24 | Reset: "é眮",
|
---|
25 | 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:'倧äºçäº'},
|
---|
26 | {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:'空åŒäº\u3000\u3000'},{ oper:'nn', text:'é空åŒ'}],
|
---|
27 | groupOps: [ { op: "AND", text: "ææ" }, { op: "OR", text: "ä»»äž" } ]
|
---|
28 | },
|
---|
29 | edit : {
|
---|
30 | addCaption: "æ·»å è®°åœ",
|
---|
31 | editCaption: "çŒèŸè®°åœ",
|
---|
32 | bSubmit: "æäº€",
|
---|
33 | bCancel: "åæ¶",
|
---|
34 | bClose: "å
³é",
|
---|
35 | saveData: "æ°æ®å·²æ¹åïŒæ¯åŠä¿åïŒ",
|
---|
36 | bYes : "æ¯",
|
---|
37 | bNo : "åŠ",
|
---|
38 | bExit : "åæ¶",
|
---|
39 | msg: {
|
---|
40 | required:"æ€å段å¿
é",
|
---|
41 | number:"请èŸå
¥æææ°å",
|
---|
42 | minValue:"èŸåŒå¿
须倧äºçäº ",
|
---|
43 | maxValue:"èŸåŒå¿
é¡»å°äºçäº ",
|
---|
44 | email: "è¿äžæ¯ææçe-mailå°å",
|
---|
45 | integer: "请èŸå
¥æææŽæ°",
|
---|
46 | date: "请èŸå
¥æææ¶éŽ",
|
---|
47 | url: "æ æçœåãåçŒå¿
须䞺 ('http://' æ 'https://')",
|
---|
48 | nodefined : " æªå®ä¹ïŒ",
|
---|
49 | novalue : " éèŠè¿ååŒïŒ",
|
---|
50 | customarray : "èªå®ä¹åœæ°éèŠè¿åæ°ç»ïŒ",
|
---|
51 | customfcheck : "Custom function should be present in case of custom checking!"
|
---|
52 |
|
---|
53 | }
|
---|
54 | },
|
---|
55 | view : {
|
---|
56 | caption: "æ¥çè®°åœ",
|
---|
57 | bClose: "å
³é"
|
---|
58 | },
|
---|
59 | del : {
|
---|
60 | caption: "å é€",
|
---|
61 | msg: "å 逿éè®°åœïŒ",
|
---|
62 | bSubmit: "å é€",
|
---|
63 | bCancel: "åæ¶"
|
---|
64 | },
|
---|
65 | nav : {
|
---|
66 | edittext: "",
|
---|
67 | edittitle: "çŒèŸæéè®°åœ",
|
---|
68 | addtext:"",
|
---|
69 | addtitle: "æ·»å æ°è®°åœ",
|
---|
70 | deltext: "",
|
---|
71 | deltitle: "å 逿éè®°åœ",
|
---|
72 | searchtext: "",
|
---|
73 | searchtitle: "æ¥æŸ",
|
---|
74 | refreshtext: "",
|
---|
75 | refreshtitle: "å·æ°è¡šæ Œ",
|
---|
76 | alertcap: "泚æ",
|
---|
77 | alerttext: "è¯·éæ©è®°åœ",
|
---|
78 | viewtext: "",
|
---|
79 | viewtitle: "æ¥çæéè®°åœ"
|
---|
80 | },
|
---|
81 | col : {
|
---|
82 | caption: "éæ©å",
|
---|
83 | bSubmit: "ç¡®å®",
|
---|
84 | bCancel: "åæ¶"
|
---|
85 | },
|
---|
86 | errors : {
|
---|
87 | errcap : "é误",
|
---|
88 | nourl : "没æè®Ÿçœ®url",
|
---|
89 | norecords: "没æèŠå€ççè®°åœ",
|
---|
90 | model : "colNames å colModel é¿åºŠäžçïŒ"
|
---|
91 | },
|
---|
92 | formatter : {
|
---|
93 | integer : {thousandsSeparator: " ", defaultValue: '0'},
|
---|
94 | number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'},
|
---|
95 | currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'},
|
---|
96 | date : {
|
---|
97 | dayNames: [
|
---|
98 | "Sun", "Mon", "Tue", "Wed", "Thr", "Fri", "Sat",
|
---|
99 | "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
|
---|
100 | ],
|
---|
101 | monthNames: [
|
---|
102 | "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
|
---|
103 | "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
|
---|
104 | ],
|
---|
105 | AmPm : ["am","pm","AM","PM"],
|
---|
106 | S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th'},
|
---|
107 | srcformat: 'Y-m-d',
|
---|
108 | newformat: 'm-d-Y',
|
---|
109 | parseRe : /[Tt\\\/:_;.,\t\s-]/,
|
---|
110 | masks : {
|
---|
111 | ISO8601Long:"Y-m-d H:i:s",
|
---|
112 | ISO8601Short:"Y-m-d",
|
---|
113 | ShortDate: "Y/j/n",
|
---|
114 | LongDate: "l, F d, Y",
|
---|
115 | FullDateTime: "l, F d, Y g:i:s A",
|
---|
116 | MonthDay: "F d",
|
---|
117 | ShortTime: "g:i A",
|
---|
118 | LongTime: "g:i:s A",
|
---|
119 | SortableDateTime: "Y-m-d\\TH:i:s",
|
---|
120 | UniversalSortableDateTime: "Y-m-d H:i:sO",
|
---|
121 | YearMonth: "F, Y"
|
---|
122 | },
|
---|
123 | reformatAfterEdit : false
|
---|
124 | },
|
---|
125 | baseLinkUrl: '',
|
---|
126 | showAction: '',
|
---|
127 | target: '',
|
---|
128 | checkbox : {disabled:true},
|
---|
129 | idName : 'id'
|
---|
130 | }
|
---|
131 | });
|
---|
132 | })(jQuery);
|
---|