3 <title>The source code</title>
\r
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
7 <body onload="prettyPrint();">
\r
8 <pre class="prettyprint lang-js">/*
9 * Simplified Chinese translation
14 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">加载中...</div>';
17 Ext.View.prototype.emptyText = "";
20 if(Ext.grid.GridPanel){
21 Ext.grid.GridPanel.prototype.ddText = "{0} 选择行";
25 Ext.TabPanelItem.prototype.closeText = "关闭";
29 Ext.form.Field.prototype.invalidText = "输入值非法";
58 Ext.MessageBox.buttonText = {
67 Ext.util.Format.date = function(v, format){
69 if(!(v instanceof Date)) v = new Date(Date.parse(v));
70 return v.dateFormat(format || "y年m月d日");
75 Ext.apply(Ext.DatePicker.prototype, {
77 minText : "日期在最小日期之前",
78 maxText : "日期在最大日期之后",
79 disabledDaysText : "",
80 disabledDatesText : "",
81 monthNames : Date.monthNames,
82 dayNames : Date.dayNames,
83 nextText : '下月 (Control+Right)',
84 prevText : '上月 (Control+Left)',
85 monthYearText : '选择一个月 (Control+Up/Down 来改变年)',
86 todayTip : "{0} (空格键选择)",
93 if(Ext.PagingToolbar){
94 Ext.apply(Ext.PagingToolbar.prototype, {
96 afterPageText : "页共 {0} 页",
102 displayMsg : "显示 {0} - {1},共 {2} 条",
103 emptyMsg : '没有数据需要显示'
107 if(Ext.form.TextField){
108 Ext.apply(Ext.form.TextField.prototype, {
109 minLengthText : "该输入项的最小长度是 {0}",
110 maxLengthText : "该输入项的最大长度是 {0}",
111 blankText : "该输入项为必输项",
117 if(Ext.form.NumberField){
118 Ext.apply(Ext.form.NumberField.prototype, {
119 minText : "该输入项的最小值是 {0}",
120 maxText : "该输入项的最大值是 {0}",
121 nanText : "{0} 不是有效数值"
125 if(Ext.form.DateField){
126 Ext.apply(Ext.form.DateField.prototype, {
127 disabledDaysText : "禁用",
128 disabledDatesText : "禁用",
129 minText : "该输入项的日期必须在 {0} 之后",
130 maxText : "该输入项的日期必须在 {0} 之前",
131 invalidText : "{0} 是无效的日期 - 必须符合格式: {1}",
136 if(Ext.form.ComboBox){
137 Ext.apply(Ext.form.ComboBox.prototype, {
138 loadingText : "加载...",
139 valueNotFoundText : undefined
144 Ext.apply(Ext.form.VTypes, {
145 emailText : '该输入项必须是电子邮件地址,格式如: "user@example.com"',
146 urlText : '该输入项必须是URL地址,格式如: "http:/'+'/www.example.com"',
147 alphaText : '该输入项只能包含字符和_',
148 alphanumText : '该输入项只能包含字符,数字和_'
152 if(Ext.grid.GridView){
153 Ext.apply(Ext.grid.GridView.prototype, {
162 if(Ext.grid.PropertyColumnModel){
163 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
166 dateFormat : "y年m月d日"
170 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
171 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
172 splitTip : "拖动来改变尺寸.",
173 collapsibleSplitTip : "拖动来改变尺寸. 双击隐藏."