2 * Simplified Chinese translation
9 Ext.onReady(function(){
11 Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">加载中...</div>';
15 Ext.view.View.prototype.emptyText = "";
19 Ext.grid.Panel.prototype.ddText = "选择了 {0} 行";
23 Ext.TabPanelItem.prototype.closeText = "关闭此标签";
26 if(Ext.form.field.Base){
27 Ext.form.field.Base.prototype.invalidText = "输入值非法";
31 Ext.LoadMask.prototype.msg = "读取中...";
35 Ext.Date.monthNames = [
60 Ext.Date.formatCodes.a = "(this.getHours() < 12 ? '上午' : '下午')";
61 Ext.Date.formatCodes.A = "(this.getHours() < 12 ? '上午' : '下午')";
65 Ext.MessageBox.buttonText = {
74 Ext.apply(Ext.util.Format, {
75 thousandSeparator: '.',
76 decimalSeparator: ',',
77 currencySign: '\u00a5', // Chinese Yuan
83 Ext.apply(Ext.picker.Date.prototype, {
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} (空格键选择)",
99 if(Ext.picker.Month) {
100 Ext.apply(Ext.picker.Month.prototype, {
106 if(Ext.toolbar.Paging){
107 Ext.apply(Ext.PagingToolbar.prototype, {
108 beforePageText : "第",//update
109 afterPageText : "页,共 {0} 页",//update
111 prevText : "上一页",//update
115 displayMsg : "显示 {0} - {1}条,共 {2} 条",//update
120 if(Ext.form.field.Text){
121 Ext.apply(Ext.form.field.Text.prototype, {
122 minLengthText : "该输入项的最小长度是 {0} 个字符",
123 maxLengthText : "该输入项的最大长度是 {0} 个字符",
124 blankText : "该输入项为必输项",
130 if(Ext.form.field.Number){
131 Ext.apply(Ext.form.field.Number.prototype, {
132 minText : "该输入项的最小值是 {0}",
133 maxText : "该输入项的最大值是 {0}",
134 nanText : "{0} 不是有效数值"
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}",
149 if(Ext.form.field.ComboBox){
150 Ext.apply(Ext.form.field.ComboBox.prototype, {
151 loadingText : "加载中...",
152 valueNotFoundText : undefined
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
164 //add HTMLEditor's tips by andy_ghg
165 if(Ext.form.field.HtmlEditor){
166 Ext.apply(Ext.form.field.HtmlEditor.prototype, {
167 createLinkText : '添加超级链接:',
170 title: '粗体 (Ctrl+B)',
172 cls: Ext.baseCSSPrefix + 'html-editor-tip'
175 title: '斜体 (Ctrl+I)',
177 cls: Ext.baseCSSPrefix + 'html-editor-tip'
180 title: '下划线 (Ctrl+U)',
182 cls: Ext.baseCSSPrefix + 'html-editor-tip'
187 cls: Ext.baseCSSPrefix + 'html-editor-tip'
192 cls: Ext.baseCSSPrefix + 'html-editor-tip'
195 title: '以不同颜色突出显示文本',
196 text: '使文字看上去像是用荧光笔做了标记一样',
197 cls: Ext.baseCSSPrefix + 'html-editor-tip'
202 cls: Ext.baseCSSPrefix + 'html-editor-tip'
207 cls: Ext.baseCSSPrefix + 'html-editor-tip'
212 cls: Ext.baseCSSPrefix + 'html-editor-tip'
217 cls: Ext.baseCSSPrefix + 'html-editor-tip'
219 insertunorderedlist : {
222 cls: Ext.baseCSSPrefix + 'html-editor-tip'
224 insertorderedlist : {
227 cls: Ext.baseCSSPrefix + 'html-editor-tip'
231 text: '将所选文本转换成超级链接',
232 cls: Ext.baseCSSPrefix + 'html-editor-tip'
237 cls: Ext.baseCSSPrefix + 'html-editor-tip'
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
254 if(Ext.grid.PropertyColumnModel){
255 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
258 dateFormat : "y年m月d日"
262 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
263 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
264 splitTip : "拖动来改变尺寸.",
265 collapsibleSplitTip : "拖动来改变尺寸. 双击隐藏."