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