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