]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | /**\r |
2 | * Simplified Chinese translation\r | |
3 | * By DavidHu\r | |
4 | * 09 April 2007\r | |
5 | *\r | |
6 | * update by andy_ghg\r | |
7 | * 2009-10-22 15:00:57\r | |
8 | */\r | |
9 | Ext.onReady(function() {\r | |
10 | var parseCodes;\r | |
11 | \r | |
12 | if (Ext.Date) {\r | |
13 | Ext.Date.monthNames = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"];\r | |
14 | \r | |
15 | Ext.Date.dayNames = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];\r | |
16 | \r | |
17 | Ext.Date.formatCodes.a = "(this.getHours() < 12 ? '上午' : '下午')";\r | |
18 | Ext.Date.formatCodes.A = "(this.getHours() < 12 ? '上午' : '下午')";\r | |
19 | \r | |
20 | parseCodes = {\r | |
21 | g: 1,\r | |
22 | c: "if (/(上午)/i.test(results[{0}])) {\n"\r | |
23 | + "if (!h || h == 12) { h = 0; }\n"\r | |
24 | + "} else { if (!h || h < 12) { h = (h || 0) + 12; }}",\r | |
25 | s: "(上午|下午)",\r | |
26 | calcAtEnd: true\r | |
27 | };\r | |
28 | \r | |
29 | Ext.Date.parseCodes.a = Ext.Date.parseCodes.A = parseCodes;\r | |
30 | }\r | |
31 | \r | |
32 | if (Ext.util && Ext.util.Format) {\r | |
33 | Ext.apply(Ext.util.Format, {\r | |
34 | thousandSeparator: ',',\r | |
35 | decimalSeparator: '.',\r | |
36 | currencySign: '\u00a5',\r | |
37 | // Chinese Yuan\r | |
38 | dateFormat: 'y年m月d日'\r | |
39 | });\r | |
40 | }\r | |
41 | });\r | |
42 | \r | |
43 | Ext.define("Ext.locale.zh_CN.view.View", {\r | |
44 | override: "Ext.view.View",\r | |
45 | emptyText: ""\r | |
46 | });\r | |
47 | \r | |
48 | Ext.define("Ext.locale.zh_CN.grid.plugin.DragDrop", {\r | |
49 | override: "Ext.grid.plugin.DragDrop",\r | |
50 | dragText: "选择了 {0} 行"\r | |
51 | });\r | |
52 | \r | |
53 | Ext.define("Ext.locale.zh_CN.tab.Tab", {\r | |
54 | override: "Ext.tab.Tab",\r | |
55 | closeText: "关闭此标签"\r | |
56 | });\r | |
57 | \r | |
58 | Ext.define("Ext.locale.zh_CN.form.field.Base", {\r | |
59 | override: "Ext.form.field.Base",\r | |
60 | invalidText: "输入值非法"\r | |
61 | });\r | |
62 | \r | |
63 | // changing the msg text below will affect the LoadMask\r | |
64 | Ext.define("Ext.locale.zh_CN.view.AbstractView", {\r | |
65 | override: "Ext.view.AbstractView",\r | |
66 | loadingText: "讀取中..."\r | |
67 | });\r | |
68 | \r | |
69 | Ext.define("Ext.locale.zh_CN.picker.Date", {\r | |
70 | override: "Ext.picker.Date",\r | |
71 | todayText: "今天",\r | |
72 | minText: "日期必须大于最小允许日期",\r | |
73 | //update\r | |
74 | maxText: "日期必须小于最大允许日期",\r | |
75 | //update\r | |
76 | disabledDaysText: "",\r | |
77 | disabledDatesText: "",\r | |
78 | nextText: '下个月 (Ctrl+Right)',\r | |
79 | prevText: '上个月 (Ctrl+Left)',\r | |
80 | monthYearText: '选择一个月 (Control+Up/Down 来改变年份)',\r | |
81 | //update\r | |
82 | todayTip: "{0} (空格键选择)",\r | |
83 | format: "y年m月d日",\r | |
84 | ariaTitle: '{0}',\r | |
85 | ariaTitleDateFormat: 'Y\u5e74m\u6708d\u65e5',\r | |
86 | longDayFormat: 'Y\u5e74m\u6708d\u65e5',\r | |
87 | monthYearFormat: 'Y\u5e74m\u6708',\r | |
88 | getDayInitial: function (value) {\r | |
89 | // Grab the last character\r | |
90 | return value.substr(value.length - 1);\r | |
91 | }\r | |
92 | });\r | |
93 | \r | |
94 | Ext.define("Ext.locale.zh_CN.picker.Month", {\r | |
95 | override: "Ext.picker.Month",\r | |
96 | okText: "确定",\r | |
97 | cancelText: "取消"\r | |
98 | });\r | |
99 | \r | |
100 | Ext.define("Ext.locale.zh_CN.toolbar.Paging", {\r | |
101 | override: "Ext.PagingToolbar",\r | |
102 | beforePageText: "第",\r | |
103 | //update\r | |
104 | afterPageText: "页,共 {0} 页",\r | |
105 | //update\r | |
106 | firstText: "第一页",\r | |
107 | prevText: "上一页",\r | |
108 | //update\r | |
109 | nextText: "下一页",\r | |
110 | lastText: "最后页",\r | |
111 | refreshText: "刷新",\r | |
112 | displayMsg: "显示 {0} - {1}条,共 {2} 条",\r | |
113 | //update\r | |
114 | emptyMsg: '没有数据'\r | |
115 | });\r | |
116 | \r | |
117 | Ext.define("Ext.locale.zh_CN.form.field.Text", {\r | |
118 | override: "Ext.form.field.Text",\r | |
119 | minLengthText: "该输入项的最小长度是 {0} 个字符",\r | |
120 | maxLengthText: "该输入项的最大长度是 {0} 个字符",\r | |
121 | blankText: "该输入项为必输项",\r | |
122 | regexText: "",\r | |
123 | emptyText: null\r | |
124 | });\r | |
125 | \r | |
126 | Ext.define("Ext.locale.zh_CN.form.field.Number", {\r | |
127 | override: "Ext.form.field.Number",\r | |
128 | minText: "该输入项的最小值是 {0}",\r | |
129 | maxText: "该输入项的最大值是 {0}",\r | |
130 | nanText: "{0} 不是有效数值"\r | |
131 | });\r | |
132 | \r | |
133 | Ext.define("Ext.locale.zh_CN.form.field.Date", {\r | |
134 | override: "Ext.form.field.Date",\r | |
135 | disabledDaysText: "禁用",\r | |
136 | disabledDatesText: "禁用",\r | |
137 | minText: "该输入项的日期必须在 {0} 之后",\r | |
138 | maxText: "该输入项的日期必须在 {0} 之前",\r | |
139 | invalidText: "{0} 是无效的日期 - 必须符合格式: {1}",\r | |
140 | format: "y年m月d日"\r | |
141 | });\r | |
142 | \r | |
143 | Ext.define("Ext.locale.zh_CN.form.field.ComboBox", {\r | |
144 | override: "Ext.form.field.ComboBox",\r | |
145 | valueNotFoundText: undefined\r | |
146 | }, function() {\r | |
147 | Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {\r | |
148 | loadingText: "加载中..."\r | |
149 | });\r | |
150 | });\r | |
151 | \r | |
152 | Ext.define("Ext.locale.zh_CN.form.field.VTypes", {\r | |
153 | override: "Ext.form.field.VTypes",\r | |
154 | emailText: '该输入项必须是电子邮件地址,格式如: "user@example.com"',\r | |
155 | urlText: '该输入项必须是URL地址,格式如: "http:/' + '/www.example.com"',\r | |
156 | alphaText: '该输入项只能包含半角字母和_',\r | |
157 | alphanumText: '该输入项只能包含半角字母,数字和_'\r | |
158 | });\r | |
159 | \r | |
160 | //add HTMLEditor's tips by andy_ghg\r | |
161 | Ext.define("Ext.locale.zh_CN.form.field.HtmlEditor", {\r | |
162 | override: "Ext.form.field.HtmlEditor",\r | |
163 | createLinkText: '添加超级链接:'\r | |
164 | }, function() {\r | |
165 | Ext.apply(Ext.form.field.HtmlEditor.prototype, {\r | |
166 | buttonTips: {\r | |
167 | bold: {\r | |
168 | title: '粗体 (Ctrl+B)',\r | |
169 | text: '将选中的文字设置为粗体',\r | |
170 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
171 | },\r | |
172 | italic: {\r | |
173 | title: '斜体 (Ctrl+I)',\r | |
174 | text: '将选中的文字设置为斜体',\r | |
175 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
176 | },\r | |
177 | underline: {\r | |
178 | title: '下划线 (Ctrl+U)',\r | |
179 | text: '给所选文字加下划线',\r | |
180 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
181 | },\r | |
182 | increasefontsize: {\r | |
183 | title: '增大字体',\r | |
184 | text: '增大字号',\r | |
185 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
186 | },\r | |
187 | decreasefontsize: {\r | |
188 | title: '缩小字体',\r | |
189 | text: '减小字号',\r | |
190 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
191 | },\r | |
192 | backcolor: {\r | |
193 | title: '以不同颜色突出显示文本',\r | |
194 | text: '使文字看上去像是用荧光笔做了标记一样',\r | |
195 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
196 | },\r | |
197 | forecolor: {\r | |
198 | title: '字体颜色',\r | |
199 | text: '更改字体颜色',\r | |
200 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
201 | },\r | |
202 | justifyleft: {\r | |
203 | title: '左对齐',\r | |
204 | text: '将文字左对齐',\r | |
205 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
206 | },\r | |
207 | justifycenter: {\r | |
208 | title: '居中',\r | |
209 | text: '将文字居中对齐',\r | |
210 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
211 | },\r | |
212 | justifyright: {\r | |
213 | title: '右对齐',\r | |
214 | text: '将文字右对齐',\r | |
215 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
216 | },\r | |
217 | insertunorderedlist: {\r | |
218 | title: '项目符号',\r | |
219 | text: '开始创建项目符号列表',\r | |
220 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
221 | },\r | |
222 | insertorderedlist: {\r | |
223 | title: '编号',\r | |
224 | text: '开始创建编号列表',\r | |
225 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
226 | },\r | |
227 | createlink: {\r | |
228 | title: '转成超级链接',\r | |
229 | text: '将所选文本转换成超级链接',\r | |
230 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
231 | },\r | |
232 | sourceedit: {\r | |
233 | title: '代码视图',\r | |
234 | text: '以代码的形式展现文本',\r | |
235 | cls: Ext.baseCSSPrefix + 'html-editor-tip'\r | |
236 | }\r | |
237 | }\r | |
238 | });\r | |
239 | });\r | |
240 | \r | |
241 | Ext.define("Ext.locale.zh_CN.grid.header.Container", {\r | |
242 | override: "Ext.grid.header.Container",\r | |
243 | sortAscText: "正序",\r | |
244 | //update\r | |
245 | sortDescText: "倒序",\r | |
246 | //update\r | |
247 | lockText: "锁定列",\r | |
248 | //update\r | |
249 | unlockText: "解除锁定",\r | |
250 | //update\r | |
251 | columnsText: "列"\r | |
252 | });\r | |
253 | \r | |
254 | Ext.define("Ext.locale.zh_CN.grid.PropertyColumnModel", {\r | |
255 | override: "Ext.grid.PropertyColumnModel",\r | |
256 | nameText: "名称",\r | |
257 | valueText: "值",\r | |
258 | dateFormat: "y年m月d日"\r | |
259 | });\r | |
260 | \r | |
261 | Ext.define("Ext.locale.zh_CN.window.MessageBox", {\r | |
262 | override: "Ext.window.MessageBox",\r | |
263 | buttonText: {\r | |
264 | ok: "确定",\r | |
265 | cancel: "取消",\r | |
266 | yes: "是",\r | |
267 | no: "否"\r | |
268 | } \r | |
269 | });\r | |
270 | \r | |
271 | // This is needed until we can refactor all of the locales into individual files\r | |
272 | Ext.define("Ext.locale.zh_CN.Component", { \r | |
273 | override: "Ext.Component"\r | |
274 | });\r |