ext-lang-zh_CN.js 8.3 KB

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