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