ext-lang-zh_CN.js 9.4 KB

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