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