ext-lang-zh_CN.js 9.1 KB

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