1 | /*! |
---|
2 | * Ext JS Library 3.0.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 | |
---|
13 | Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">加载中...</div>'; |
---|
14 | |
---|
15 | if(Ext.View){ |
---|
16 | Ext.View.prototype.emptyText = ""; |
---|
17 | } |
---|
18 | |
---|
19 | if(Ext.grid.GridPanel){ |
---|
20 | Ext.grid.GridPanel.prototype.ddText = "{0} 选择行"; |
---|
21 | } |
---|
22 | |
---|
23 | if(Ext.TabPanelItem){ |
---|
24 | Ext.TabPanelItem.prototype.closeText = "关闭"; |
---|
25 | } |
---|
26 | |
---|
27 | if(Ext.form.Field){ |
---|
28 | Ext.form.Field.prototype.invalidText = "输入值非法"; |
---|
29 | } |
---|
30 | |
---|
31 | Date.monthNames = [ |
---|
32 | "一月", |
---|
33 | "二月", |
---|
34 | "三月", |
---|
35 | "四月", |
---|
36 | "五月", |
---|
37 | "六月", |
---|
38 | "七月", |
---|
39 | "八月", |
---|
40 | "九月", |
---|
41 | "十月", |
---|
42 | "十一月", |
---|
43 | "十二月" |
---|
44 | ]; |
---|
45 | |
---|
46 | Date.dayNames = [ |
---|
47 | "日", |
---|
48 | "一", |
---|
49 | "二", |
---|
50 | "三", |
---|
51 | "四", |
---|
52 | "五", |
---|
53 | "六" |
---|
54 | ]; |
---|
55 | |
---|
56 | if(Ext.MessageBox){ |
---|
57 | Ext.MessageBox.buttonText = { |
---|
58 | ok : "确定", |
---|
59 | cancel : "取消", |
---|
60 | yes : "是", |
---|
61 | no : "否" |
---|
62 | }; |
---|
63 | } |
---|
64 | |
---|
65 | if(Ext.util.Format){ |
---|
66 | Ext.util.Format.date = function(v, format){ |
---|
67 | if(!v) return ""; |
---|
68 | if(!(v instanceof Date)) v = new Date(Date.parse(v)); |
---|
69 | return v.dateFormat(format || "y年m月d日"); |
---|
70 | }; |
---|
71 | } |
---|
72 | |
---|
73 | if(Ext.DatePicker){ |
---|
74 | Ext.apply(Ext.DatePicker.prototype, { |
---|
75 | todayText : "今天", |
---|
76 | minText : "日期在最小日期之前", |
---|
77 | maxText : "日期在最大日期之后", |
---|
78 | disabledDaysText : "", |
---|
79 | disabledDatesText : "", |
---|
80 | monthNames : Date.monthNames, |
---|
81 | dayNames : Date.dayNames, |
---|
82 | nextText : '下月 (Control+Right)', |
---|
83 | prevText : '上月 (Control+Left)', |
---|
84 | monthYearText : '选择一个月 (Control+Up/Down 来改变年)', |
---|
85 | todayTip : "{0} (空格键选择)", |
---|
86 | format : "y年m月d日", |
---|
87 | okText : "确定", |
---|
88 | cancelText : "取消" |
---|
89 | }); |
---|
90 | } |
---|
91 | |
---|
92 | if(Ext.PagingToolbar){ |
---|
93 | Ext.apply(Ext.PagingToolbar.prototype, { |
---|
94 | beforePageText : "页", |
---|
95 | afterPageText : "页共 {0} 页", |
---|
96 | firstText : "第一页", |
---|
97 | prevText : "前一页", |
---|
98 | nextText : "下一页", |
---|
99 | lastText : "最后页", |
---|
100 | refreshText : "刷新", |
---|
101 | displayMsg : "显示 {0} - {1},共 {2} 条", |
---|
102 | emptyMsg : '没有数据需要显示' |
---|
103 | }); |
---|
104 | } |
---|
105 | |
---|
106 | if(Ext.form.TextField){ |
---|
107 | Ext.apply(Ext.form.TextField.prototype, { |
---|
108 | minLengthText : "该输入项的最小长度是 {0}", |
---|
109 | maxLengthText : "该输入项的最大长度是 {0}", |
---|
110 | blankText : "该输入项为必输项", |
---|
111 | regexText : "", |
---|
112 | emptyText : null |
---|
113 | }); |
---|
114 | } |
---|
115 | |
---|
116 | if(Ext.form.NumberField){ |
---|
117 | Ext.apply(Ext.form.NumberField.prototype, { |
---|
118 | minText : "该输入项的最小值是 {0}", |
---|
119 | maxText : "该输入项的最大值是 {0}", |
---|
120 | nanText : "{0} 不是有效数值" |
---|
121 | }); |
---|
122 | } |
---|
123 | |
---|
124 | if(Ext.form.DateField){ |
---|
125 | Ext.apply(Ext.form.DateField.prototype, { |
---|
126 | disabledDaysText : "禁用", |
---|
127 | disabledDatesText : "禁用", |
---|
128 | minText : "该输入项的日期必须在 {0} 之后", |
---|
129 | maxText : "该输入项的日期必须在 {0} 之前", |
---|
130 | invalidText : "{0} 是无效的日期 - 必须符合格式: {1}", |
---|
131 | format : "y年m月d日" |
---|
132 | }); |
---|
133 | } |
---|
134 | |
---|
135 | if(Ext.form.ComboBox){ |
---|
136 | Ext.apply(Ext.form.ComboBox.prototype, { |
---|
137 | loadingText : "加载...", |
---|
138 | valueNotFoundText : undefined |
---|
139 | }); |
---|
140 | } |
---|
141 | |
---|
142 | if(Ext.form.VTypes){ |
---|
143 | Ext.apply(Ext.form.VTypes, { |
---|
144 | emailText : '该输入项必须是电子邮件地址,格式如: "user@example.com"', |
---|
145 | urlText : '该输入项必须是URL地址,格式如: "http:/'+'/www.example.com"', |
---|
146 | alphaText : '该输入项只能包含字符和_', |
---|
147 | alphanumText : '该输入项只能包含字符,数字和_' |
---|
148 | }); |
---|
149 | } |
---|
150 | |
---|
151 | if(Ext.grid.GridView){ |
---|
152 | Ext.apply(Ext.grid.GridView.prototype, { |
---|
153 | sortAscText : "正序", |
---|
154 | sortDescText : "逆序", |
---|
155 | lockText : "锁列", |
---|
156 | unlockText : "解锁列", |
---|
157 | columnsText : "列" |
---|
158 | }); |
---|
159 | } |
---|
160 | |
---|
161 | if(Ext.grid.PropertyColumnModel){ |
---|
162 | Ext.apply(Ext.grid.PropertyColumnModel.prototype, { |
---|
163 | nameText : "名称", |
---|
164 | valueText : "值", |
---|
165 | dateFormat : "y年m月d日" |
---|
166 | }); |
---|
167 | } |
---|
168 | |
---|
169 | if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){ |
---|
170 | Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, { |
---|
171 | splitTip : "拖动来改变尺寸.", |
---|
172 | collapsibleSplitTip : "拖动来改变尺寸. 双击隐藏." |
---|
173 | }); |
---|
174 | } |
---|