3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4 <title>The source code</title>
5 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
6 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
8 <body onload="prettyPrint();">
9 <pre class="prettyprint lang-js">/*!
10 * Ext JS Library 3.2.0
11 * Copyright(c) 2006-2010 Ext JS, Inc.
13 * http://www.extjs.com/license
16 * Simplified Chinese translation
24 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">加载中...</div>';
27 Ext.DataView.prototype.emptyText = "";
30 if(Ext.grid.GridPanel){
31 Ext.grid.GridPanel.prototype.ddText = "选择了 {0} 行";
35 Ext.TabPanelItem.prototype.closeText = "关闭此标签";
39 Ext.form.Field.prototype.invalidText = "输入值非法";
43 Ext.LoadMask.prototype.msg = "读取中...";
71 Date.formatCodes.a = "(this.getHours() < 12 ? '上午' : '下午')";
72 Date.formatCodes.A = "(this.getHours() < 12 ? '上午' : '下午')";
75 Ext.MessageBox.buttonText = {
84 Ext.util.Format.date = function(v, format){
86 if(!(v instanceof Date)) v = new Date(Date.parse(v));
87 return v.dateFormat(format || "y年m月d日");
92 Ext.apply(Ext.DatePicker.prototype, {
94 minText : "日期必须大于最小允许日期",//update
95 maxText : "日期必须小于最大允许日期",//update
96 disabledDaysText : "",
97 disabledDatesText : "",
98 monthNames : Date.monthNames,
99 dayNames : Date.dayNames,
100 nextText : '下个月 (Ctrl+Right)',
101 prevText : '上个月 (Ctrl+Left)',
102 monthYearText : '选择一个月 (Control+Up/Down 来改变年份)',//update
103 todayTip : "{0} (空格键选择)",
110 if(Ext.PagingToolbar){
111 Ext.apply(Ext.PagingToolbar.prototype, {
112 beforePageText : "第",//update
113 afterPageText : "页,共 {0} 页",//update
115 prevText : "上一页",//update
119 displayMsg : "显示 {0} - {1}条,共 {2} 条",//update
124 if(Ext.form.TextField){
125 Ext.apply(Ext.form.TextField.prototype, {
126 minLengthText : "该输入项的最小长度是 {0} 个字符",
127 maxLengthText : "该输入项的最大长度是 {0} 个字符",
128 blankText : "该输入项为必输项",
134 if(Ext.form.NumberField){
135 Ext.apply(Ext.form.NumberField.prototype, {
136 minText : "该输入项的最小值是 {0}",
137 maxText : "该输入项的最大值是 {0}",
138 nanText : "{0} 不是有效数值"
142 if(Ext.form.DateField){
143 Ext.apply(Ext.form.DateField.prototype, {
144 disabledDaysText : "禁用",
145 disabledDatesText : "禁用",
146 minText : "该输入项的日期必须在 {0} 之后",
147 maxText : "该输入项的日期必须在 {0} 之前",
148 invalidText : "{0} 是无效的日期 - 必须符合格式: {1}",
153 if(Ext.form.ComboBox){
154 Ext.apply(Ext.form.ComboBox.prototype, {
155 loadingText : "加载中...",
156 valueNotFoundText : undefined
161 Ext.apply(Ext.form.VTypes, {
162 emailText : '该输入项必须是电子邮件地址,格式如: "user@example.com"',
163 urlText : '该输入项必须是URL地址,格式如: "http:/'+'/www.example.com"',
164 alphaText : '该输入项只能包含半角字母和_',//update
165 alphanumText : '该输入项只能包含半角字母,数字和_'//update
168 //add HTMLEditor's tips by andy_ghg
169 if(Ext.form.HtmlEditor){
170 Ext.apply(Ext.form.HtmlEditor.prototype, {
171 createLinkText : '添加超级链接:',
174 title: '粗体 (Ctrl+B)',
176 cls: 'x-html-editor-tip'
179 title: '斜体 (Ctrl+I)',
181 cls: 'x-html-editor-tip'
184 title: '下划线 (Ctrl+U)',
186 cls: 'x-html-editor-tip'
191 cls: 'x-html-editor-tip'
196 cls: 'x-html-editor-tip'
199 title: '以不同颜色突出显示文本',
200 text: '使文字看上去像是用荧光笔做了标记一样',
201 cls: 'x-html-editor-tip'
206 cls: 'x-html-editor-tip'
211 cls: 'x-html-editor-tip'
216 cls: 'x-html-editor-tip'
221 cls: 'x-html-editor-tip'
223 insertunorderedlist : {
226 cls: 'x-html-editor-tip'
228 insertorderedlist : {
231 cls: 'x-html-editor-tip'
235 text: '将所选文本转换成超级链接',
236 cls: 'x-html-editor-tip'
241 cls: 'x-html-editor-tip'
248 if(Ext.grid.GridView){
249 Ext.apply(Ext.grid.GridView.prototype, {
250 sortAscText : "正序",//update
251 sortDescText : "倒序",//update
252 lockText : "锁定列",//update
253 unlockText : "解除锁定",//update
258 if(Ext.grid.PropertyColumnModel){
259 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
262 dateFormat : "y年m月d日"
266 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
267 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
268 splitTip : "拖动来改变尺寸.",
269 collapsibleSplitTip : "拖动来改变尺寸. 双击隐藏."