ext-locale-zh_CN.js 8.5 KB

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