ext-lang-zh_CN.js 9.2 KB

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