提交 | 用户 | 时间
|
58d006
|
1 |
/** |
A |
2 |
* jqGrid Chinese (Taiwan) Translation for v4.2 |
|
3 |
* linquize |
|
4 |
* https://github.com/linquize/jqGrid |
|
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 |
**/ |
|
10 |
/*global jQuery, define */ |
|
11 |
(function( factory ) { |
|
12 |
"use strict"; |
|
13 |
if ( typeof define === "function" && define.amd ) { |
|
14 |
// AMD. Register as an anonymous module. |
|
15 |
define([ |
|
16 |
"jquery", |
|
17 |
"../grid.base" |
|
18 |
], factory ); |
|
19 |
} else { |
|
20 |
// Browser globals |
|
21 |
factory( jQuery ); |
|
22 |
} |
|
23 |
}(function( $ ) { |
|
24 |
|
|
25 |
$.jgrid = $.jgrid || {}; |
|
26 |
if(!$.jgrid.hasOwnProperty("regional")) { |
|
27 |
$.jgrid.regional = []; |
|
28 |
} |
|
29 |
$.jgrid.regional["tw"] = { |
|
30 |
defaults : { |
|
31 |
recordtext: "{0} - {1} 共 {2} 條", |
|
32 |
emptyrecords: "沒有記錄", |
|
33 |
loadtext: "載入中...", |
|
34 |
pgtext : " {0} 共 {1} 頁", |
|
35 |
savetext: "Saving...", |
|
36 |
pgfirst : "First Page", |
|
37 |
pglast : "Last Page", |
|
38 |
pgnext : "Next Page", |
|
39 |
pgprev : "Previous Page", |
|
40 |
pgrecs : "Records per Page", |
|
41 |
showhide: "Toggle Expand Collapse Grid", |
|
42 |
// mobile |
|
43 |
pagerCaption : "Grid::Page Settings", |
|
44 |
pageText : "Page:", |
|
45 |
recordPage : "Records per Page", |
|
46 |
nomorerecs : "No more records...", |
|
47 |
scrollPullup: "Pull up to load more...", |
|
48 |
scrollPulldown : "Pull down to refresh...", |
|
49 |
scrollRefresh : "Release to refresh..." |
|
50 |
}, |
|
51 |
search : { |
|
52 |
caption: "搜尋...", |
|
53 |
Find: "搜尋", |
|
54 |
Reset: "重設", |
|
55 |
odata: [{ oper:'eq', text:"等於 "},{ oper:'ne', text:"不等於 "},{ oper:'lt', text:"小於 "},{ oper:'le', text:"小於等於 "},{ oper:'gt', text:"大於 "},{ oper:'ge', text:"大於等於 "},{ oper:'bw', text:"開始於 "},{ oper:'bn', text:"不開始於 "},{ oper:'in', text:"在其中 "},{ oper:'ni', text:"不在其中 "},{ oper:'ew', text:"結束於 "},{ oper:'en', text:"不結束於 "},{ oper:'cn', text:"包含 "},{ oper:'nc', text:"不包含 "},{ oper:'nu', text:'is null'},{ oper:'nn', text:'is not null'}], |
|
56 |
groupOps: [ { op: "AND", text: "所有" }, { op: "OR", text: "任一" } ], |
|
57 |
operandTitle : "Click to select search operation.", |
|
58 |
resetTitle : "Reset Search Value" |
|
59 |
}, |
|
60 |
edit : { |
|
61 |
addCaption: "新增記錄", |
|
62 |
editCaption: "編輯記錄", |
|
63 |
bSubmit: "提交", |
|
64 |
bCancel: "取消", |
|
65 |
bClose: "關閉", |
|
66 |
saveData: "資料已改變,是否儲存?", |
|
67 |
bYes : "是", |
|
68 |
bNo : "否", |
|
69 |
bExit : "取消", |
|
70 |
msg: { |
|
71 |
required:"此欄必要", |
|
72 |
number:"請輸入有效的數字", |
|
73 |
minValue:"值必須大於等於 ", |
|
74 |
maxValue:"值必須小於等於 ", |
|
75 |
email: "不是有效的e-mail地址", |
|
76 |
integer: "請輸入有效整数", |
|
77 |
date: "請輸入有效時間", |
|
78 |
url: "網址無效。前綴必須為 ('http://' 或 'https://')", |
|
79 |
nodefined : " 未定義!", |
|
80 |
novalue : " 需要傳回值!", |
|
81 |
customarray : "自訂函數應傳回陣列!", |
|
82 |
customfcheck : "自訂檢查應有自訂函數!" |
|
83 |
|
|
84 |
} |
|
85 |
}, |
|
86 |
view : { |
|
87 |
caption: "查看記錄", |
|
88 |
bClose: "關閉" |
|
89 |
}, |
|
90 |
del : { |
|
91 |
caption: "刪除", |
|
92 |
msg: "刪除已選記錄?", |
|
93 |
bSubmit: "刪除", |
|
94 |
bCancel: "取消" |
|
95 |
}, |
|
96 |
nav : { |
|
97 |
edittext: "", |
|
98 |
edittitle: "編輯已選列", |
|
99 |
addtext:"", |
|
100 |
addtitle: "新增列", |
|
101 |
deltext: "", |
|
102 |
deltitle: "刪除已選列", |
|
103 |
searchtext: "", |
|
104 |
searchtitle: "搜尋記錄", |
|
105 |
refreshtext: "", |
|
106 |
refreshtitle: "重新整理表格", |
|
107 |
alertcap: "警告", |
|
108 |
alerttext: "請選擇列", |
|
109 |
viewtext: "", |
|
110 |
viewtitle: "檢視已選列", |
|
111 |
savetext: "", |
|
112 |
savetitle: "Save row", |
|
113 |
canceltext: "", |
|
114 |
canceltitle : "Cancel row editing", |
|
115 |
selectcaption : "Actions..." |
|
116 |
}, |
|
117 |
col : { |
|
118 |
caption: "選擇欄", |
|
119 |
bSubmit: "確定", |
|
120 |
bCancel: "取消" |
|
121 |
}, |
|
122 |
errors : { |
|
123 |
errcap : "錯誤", |
|
124 |
nourl : "未設定URL", |
|
125 |
norecords: "無需要處理的記錄", |
|
126 |
model : "colNames 和 colModel 長度不同!" |
|
127 |
}, |
|
128 |
formatter : { |
|
129 |
integer : {thousandsSeparator: " ", defaultValue: '0'}, |
|
130 |
number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'}, |
|
131 |
currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, |
|
132 |
date : { |
|
133 |
dayNames: [ |
|
134 |
"日", "一", "二", "三", "四", "五", "六", |
|
135 |
"星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" |
|
136 |
], |
|
137 |
monthNames: [ |
|
138 |
"一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二", |
|
139 |
"一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月" |
|
140 |
], |
|
141 |
AmPm : ["上午","下午","上午","下午"], |
|
142 |
S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th';}, |
|
143 |
srcformat: 'Y-m-d', |
|
144 |
newformat: 'm-d-Y', |
|
145 |
parseRe : /[#%\\\/:_;.,\t\s-]/, |
|
146 |
masks : { |
|
147 |
ISO8601Long:"Y-m-d H:i:s", |
|
148 |
ISO8601Short:"Y-m-d", |
|
149 |
ShortDate: "Y/j/n", |
|
150 |
LongDate: "l, F d, Y", |
|
151 |
FullDateTime: "l, F d, Y g:i:s A", |
|
152 |
MonthDay: "F d", |
|
153 |
ShortTime: "g:i A", |
|
154 |
LongTime: "g:i:s A", |
|
155 |
SortableDateTime: "Y-m-d\\TH:i:s", |
|
156 |
UniversalSortableDateTime: "Y-m-d H:i:sO", |
|
157 |
YearMonth: "F, Y" |
|
158 |
}, |
|
159 |
reformatAfterEdit : false, |
|
160 |
userLocalTime : false |
|
161 |
}, |
|
162 |
baseLinkUrl: '', |
|
163 |
showAction: '', |
|
164 |
target: '', |
|
165 |
checkbox : {disabled:true}, |
|
166 |
idName : 'id' |
|
167 |
} |
|
168 |
}; |
|
169 |
})); |