ext-lang-zh_CN.js 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. Ext.onReady(function(){
  2. if(Ext.Updater){
  3. Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">加载中...</div>';
  4. }
  5. if(Ext.grid.Panel){
  6. Ext.grid.Panel.prototype.ddText = "选择了 {0} 行";
  7. Ext.grid.Panel.prototype.viewConfig = {
  8. stripeRows: true,
  9. deferEmptyText : true,
  10. emptyText : '没有找到与条件相符合的数据',
  11. loadingText : '数据加载中....'
  12. };
  13. }
  14. if(Ext.TabPanelItem){
  15. Ext.TabPanelItem.prototype.closeText = "关闭此标签";
  16. }
  17. if(Ext.form.field.Base){
  18. Ext.form.field.Base.prototype.invalidText = "输入值非法";
  19. }
  20. if (Ext.LoadMask) {
  21. Ext.LoadMask.prototype.msg = "读取中...";
  22. }
  23. if(Ext.Date){
  24. Ext.Date.monthNames = [
  25. "一月",
  26. "二月",
  27. "三月",
  28. "四月",
  29. "五月",
  30. "六月",
  31. "七月",
  32. "八月",
  33. "九月",
  34. "十月",
  35. "十一月",
  36. "十二月"
  37. ];
  38. Ext.Date.dayNames = [
  39. "日",
  40. "一",
  41. "二",
  42. "三",
  43. "四",
  44. "五",
  45. "六"
  46. ];
  47. Ext.Date.formatCodes.a = "(this.getHours() < 12 ? '上午' : '下午')";
  48. Ext.Date.formatCodes.A = "(this.getHours() < 12 ? '上午' : '下午')";
  49. }
  50. if(Ext.window.MessageBox){
  51. Ext.window.MessageBox.prototype.buttonText = {
  52. ok : "确定",
  53. cancel : "取消",
  54. yes : "是",
  55. no : "否"
  56. };
  57. }
  58. if(Ext.util.Format){
  59. Ext.apply(Ext.util.Format, {
  60. thousandSeparator: '.',
  61. decimalSeparator: ',',
  62. currencySign: '\u00a5', // Chinese Yuan
  63. dateFormat: 'y年m月d日'
  64. });
  65. }
  66. if(Ext.picker.Date){
  67. Ext.apply(Ext.picker.Date.prototype, {
  68. todayText : "今天",
  69. minText : "日期必须大于最小允许日期",//update
  70. maxText : "日期必须小于最大允许日期",//update
  71. disabledDaysText : "",
  72. disabledDatesText : "",
  73. monthNames : Ext.Date.monthNames,
  74. dayNames : Ext.Date.dayNames,
  75. nextText : '下个月 (Ctrl+Right)',
  76. prevText : '上个月 (Ctrl+Left)',
  77. monthYearText : '选择一个月 (Control+Up/Down 来改变年份)',//update
  78. todayTip : "{0} (空格键选择)",
  79. format : "y年m月d日"
  80. });
  81. }
  82. if(Ext.picker.Month) {
  83. Ext.apply(Ext.picker.Month.prototype, {
  84. okText : "确定",
  85. cancelText : "取消"
  86. });
  87. }
  88. if(Ext.tab.Tab){
  89. Ext.apply(Ext.tab.Tab.prototype, {
  90. closeText : '关闭标签页'
  91. });
  92. }
  93. if(Ext.toolbar.Paging){
  94. Ext.apply(Ext.PagingToolbar.prototype, {
  95. displayInfo: true,
  96. beforePageText : "第",//update
  97. afterPageText : "页,共 {0} 页",//update
  98. firstText : "第一页",
  99. prevText : "上一页",//update
  100. nextText : "下一页",
  101. lastText : "最后页",
  102. refreshText : "刷新",
  103. displayMsg: '第 {0} - {1} 条,共{2}条数据',
  104. emptyMsg: '没有数据',
  105. beforePageCountText: '每页显示',
  106. afterPageCountText: '条数据'
  107. });
  108. }
  109. if(Ext.form.field.Text){
  110. Ext.apply(Ext.form.field.Text.prototype, {
  111. minLengthText : "该输入项的最小长度是 {0} 个字符",
  112. maxLengthText : "该输入项的最大长度是 {0} 个字符",
  113. blankText : "该输入项为必输项",
  114. regexText : "",
  115. emptyText : null
  116. });
  117. }
  118. if(Ext.form.field.Number){
  119. Ext.apply(Ext.form.field.Number.prototype, {
  120. minText : "该输入项的最小值是 {0}",
  121. maxText : "该输入项的最大值是 {0}",
  122. nanText : "{0} 不是有效数值"
  123. });
  124. }
  125. if(Ext.form.field.Date){
  126. Ext.apply(Ext.form.field.Date.prototype, {
  127. disabledDaysText : "禁用",
  128. disabledDatesText : "禁用",
  129. minText : "该输入项的日期必须在 {0} 之后",
  130. maxText : "该输入项的日期必须在 {0} 之前",
  131. invalidText : "{0} 是无效的日期 - 必须符合格式: {1}",
  132. format : "y年m月d日"
  133. });
  134. }
  135. if(Ext.form.field.ComboBox){
  136. Ext.apply(Ext.form.field.ComboBox.prototype, {
  137. loadingText : "加载中...",
  138. valueNotFoundText : undefined
  139. });
  140. }
  141. if(Ext.form.field.VTypes){
  142. Ext.apply(Ext.form.field.VTypes, {
  143. emailText : '该输入项必须是电子邮件地址,格式如: "user@example.com"',
  144. urlText : '该输入项必须是URL地址,格式如: "http:/'+'/www.example.com"',
  145. alphaText : '该输入项只能包含半角字母和_',//update
  146. alphanumText : '该输入项只能包含半角字母,数字和_'//update
  147. });
  148. }
  149. //add HTMLEditor's tips by andy_ghg
  150. if(Ext.form.field.HtmlEditor){
  151. Ext.apply(Ext.form.field.HtmlEditor.prototype, {
  152. createLinkText : '添加超级链接:',
  153. buttonTips : {
  154. bold : {
  155. title: '粗体 (Ctrl+B)',
  156. text: '将选中的文字设置为粗体',
  157. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  158. },
  159. italic : {
  160. title: '斜体 (Ctrl+I)',
  161. text: '将选中的文字设置为斜体',
  162. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  163. },
  164. underline : {
  165. title: '下划线 (Ctrl+U)',
  166. text: '给所选文字加下划线',
  167. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  168. },
  169. increasefontsize : {
  170. title: '增大字体',
  171. text: '增大字号',
  172. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  173. },
  174. decreasefontsize : {
  175. title: '缩小字体',
  176. text: '减小字号',
  177. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  178. },
  179. backcolor : {
  180. title: '以不同颜色突出显示文本',
  181. text: '使文字看上去像是用荧光笔做了标记一样',
  182. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  183. },
  184. forecolor : {
  185. title: '字体颜色',
  186. text: '更改字体颜色',
  187. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  188. },
  189. justifyleft : {
  190. title: '左对齐',
  191. text: '将文字左对齐',
  192. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  193. },
  194. justifycenter : {
  195. title: '居中',
  196. text: '将文字居中对齐',
  197. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  198. },
  199. justifyright : {
  200. title: '右对齐',
  201. text: '将文字右对齐',
  202. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  203. },
  204. insertunorderedlist : {
  205. title: '项目符号',
  206. text: '开始创建项目符号列表',
  207. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  208. },
  209. insertorderedlist : {
  210. title: '编号',
  211. text: '开始创建编号列表',
  212. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  213. },
  214. createlink : {
  215. title: '转成超级链接',
  216. text: '将所选文本转换成超级链接',
  217. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  218. },
  219. sourceedit : {
  220. title: '代码视图',
  221. text: '以代码的形式展现文本',
  222. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  223. }
  224. }
  225. });
  226. }
  227. if(Ext.grid.header.Container){
  228. Ext.apply(Ext.grid.header.Container.prototype, {
  229. sortAscText : "正序",//update
  230. sortDescText : "倒序",//update
  231. lockText : "锁定列",//update
  232. unlockText : "解除锁定",//update
  233. columnsText : "列"
  234. });
  235. }
  236. if(Ext.grid.PropertyColumnModel){
  237. Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
  238. nameText : "名称",
  239. valueText : "值",
  240. dateFormat : "y年m月d日"
  241. });
  242. }
  243. if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
  244. Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
  245. splitTip : "拖动来改变尺寸.",
  246. collapsibleSplitTip : "拖动来改变尺寸. 双击隐藏."
  247. });
  248. }
  249. });