3 This file is part of Ext JS 4
5 Copyright (c) 2011 Sencha Inc
7 Contact: http://www.sencha.com/contact
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.
12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
16 * Simplified Chinese translation
23 Ext.onReady(function(){
25 Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">加载中...</div>';
29 Ext.view.View.prototype.emptyText = "";
33 Ext.grid.Panel.prototype.ddText = "选择了 {0} 行";
37 Ext.TabPanelItem.prototype.closeText = "关闭此标签";
40 if(Ext.form.field.Base){
41 Ext.form.field.Base.prototype.invalidText = "输入值非法";
45 Ext.LoadMask.prototype.msg = "读取中...";
49 Ext.Date.monthNames = [
74 Ext.Date.formatCodes.a = "(this.getHours() < 12 ? '上午' : '下午')";
75 Ext.Date.formatCodes.A = "(this.getHours() < 12 ? '上午' : '下午')";
79 Ext.MessageBox.buttonText = {
88 Ext.apply(Ext.util.Format, {
89 thousandSeparator: '.',
90 decimalSeparator: ',',
91 currencySign: '\u00a5', // Chinese Yuan
97 Ext.apply(Ext.picker.Date.prototype, {
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} (空格键选择)",
113 if(Ext.picker.Month) {
114 Ext.apply(Ext.picker.Month.prototype, {
120 if(Ext.toolbar.Paging){
121 Ext.apply(Ext.PagingToolbar.prototype, {
122 beforePageText : "第",//update
123 afterPageText : "页,共 {0} 页",//update
125 prevText : "上一页",//update
129 displayMsg : "显示 {0} - {1}条,共 {2} 条",//update
134 if(Ext.form.field.Text){
135 Ext.apply(Ext.form.field.Text.prototype, {
136 minLengthText : "该输入项的最小长度是 {0} 个字符",
137 maxLengthText : "该输入项的最大长度是 {0} 个字符",
138 blankText : "该输入项为必输项",
144 if(Ext.form.field.Number){
145 Ext.apply(Ext.form.field.Number.prototype, {
146 minText : "该输入项的最小值是 {0}",
147 maxText : "该输入项的最大值是 {0}",
148 nanText : "{0} 不是有效数值"
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}",
163 if(Ext.form.field.ComboBox){
164 Ext.apply(Ext.form.field.ComboBox.prototype, {
165 valueNotFoundText : undefined
167 Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
168 loadingText : "加载中..."
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
180 //add HTMLEditor's tips by andy_ghg
181 if(Ext.form.field.HtmlEditor){
182 Ext.apply(Ext.form.field.HtmlEditor.prototype, {
183 createLinkText : '添加超级链接:',
186 title: '粗体 (Ctrl+B)',
188 cls: Ext.baseCSSPrefix + 'html-editor-tip'
191 title: '斜体 (Ctrl+I)',
193 cls: Ext.baseCSSPrefix + 'html-editor-tip'
196 title: '下划线 (Ctrl+U)',
198 cls: Ext.baseCSSPrefix + 'html-editor-tip'
203 cls: Ext.baseCSSPrefix + 'html-editor-tip'
208 cls: Ext.baseCSSPrefix + 'html-editor-tip'
211 title: '以不同颜色突出显示文本',
212 text: '使文字看上去像是用荧光笔做了标记一样',
213 cls: Ext.baseCSSPrefix + 'html-editor-tip'
218 cls: Ext.baseCSSPrefix + 'html-editor-tip'
223 cls: Ext.baseCSSPrefix + 'html-editor-tip'
228 cls: Ext.baseCSSPrefix + 'html-editor-tip'
233 cls: Ext.baseCSSPrefix + 'html-editor-tip'
235 insertunorderedlist : {
238 cls: Ext.baseCSSPrefix + 'html-editor-tip'
240 insertorderedlist : {
243 cls: Ext.baseCSSPrefix + 'html-editor-tip'
247 text: '将所选文本转换成超级链接',
248 cls: Ext.baseCSSPrefix + 'html-editor-tip'
253 cls: Ext.baseCSSPrefix + 'html-editor-tip'
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
270 if(Ext.grid.PropertyColumnModel){
271 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
274 dateFormat : "y年m月d日"
278 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
279 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
280 splitTip : "拖动来改变尺寸.",
281 collapsibleSplitTip : "拖动来改变尺寸. 双击隐藏."