locale-zh_CN-debug.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. Ext.define('Ext.locale.zh_CN.ux.colorpick.Selector', {
  2. override: 'Ext.ux.colorpick.Selector',
  3. okButtonText: '确定',
  4. cancelButtonText: '取消'
  5. });
  6. // This is needed until we can refactor all of the locales into individual files
  7. Ext.define("Ext.locale.zh_CN.Component", {
  8. override: "Ext.Component"
  9. });
  10. Ext.define('Ext.locale.zh_CN.Dialog', {
  11. override: 'Ext.Dialog',
  12. config: {
  13. maximizeTool: {
  14. tooltip: "最大化到全屏"
  15. },
  16. restoreTool: {
  17. tooltip: "恢复到原始大小"
  18. }
  19. }
  20. });
  21. Ext.define("Ext.locale.zh_CN.LoadMask", {
  22. override: "Ext.LoadMask",
  23. config: {
  24. message: '读取中...'
  25. }
  26. });
  27. Ext.define('Ext.locale.zh_CN.Panel', {
  28. override: 'Ext.Panel',
  29. config: {
  30. standardButtons: {
  31. ok: {
  32. text: 'OK'
  33. },
  34. abort: {
  35. text: '退出'
  36. },
  37. retry: {
  38. text: '重试'
  39. },
  40. ignore: {
  41. text: '忽视'
  42. },
  43. yes: {
  44. text: '是'
  45. },
  46. no: {
  47. text: '没有'
  48. },
  49. cancel: {
  50. text: '取消'
  51. },
  52. apply: {
  53. text: '应用'
  54. },
  55. save: {
  56. text: '保存'
  57. },
  58. submit: {
  59. text: '提交'
  60. },
  61. help: {
  62. text: '救命'
  63. },
  64. close: {
  65. text: '关闭'
  66. }
  67. },
  68. closeToolText: '关闭面板'
  69. }
  70. });
  71. Ext.define('Ext.locale.zh_CN.data.validator.Bound', {
  72. override: 'Ext.data.validator.Bound',
  73. config: {
  74. emptyMessage: '必须存在',
  75. minOnlyMessage: '必须至少为{0}',
  76. maxOnlyMessage: '必须不超过{0}',
  77. bothMessage: '必须在 {0} 和 {1} 之间'
  78. }
  79. });
  80. Ext.define('Ext.locale.zh_CN.data.validator.CIDRv4', {
  81. override: 'Ext.data.validator.CIDRv4',
  82. config: {
  83. message: '不是有效的CIDR块'
  84. }
  85. });
  86. Ext.define('Ext.locale.zh_CN.data.validator.CIDRv6', {
  87. override: 'Ext.data.validator.CIDRv6',
  88. config: {
  89. message: '不是有效的CIDR块'
  90. }
  91. });
  92. Ext.define('Ext.locale.zh_CN.data.validator.Currency', {
  93. override: 'Ext.data.validator.Currency',
  94. config: {
  95. message: '不是有效的货币金额'
  96. }
  97. });
  98. Ext.define('Ext.locale.zh_CN.data.validator.Date', {
  99. override: 'Ext.data.validator.Date',
  100. config: {
  101. message: "不是有效日期"
  102. }
  103. });
  104. Ext.define('Ext.locale.zh_CN.data.validator.DateTime', {
  105. override: 'Ext.data.validator.DateTime',
  106. config: {
  107. message: '不是有效的日期和时间'
  108. }
  109. });
  110. Ext.define('Ext.locale.zh_CN.data.validator.Email', {
  111. override: 'Ext.data.validator.Email',
  112. config: {
  113. message: '不是有效的电子邮件地址'
  114. }
  115. });
  116. Ext.define('Ext.locale.zh_CN.data.validator.Exclusion', {
  117. override: 'Ext.data.validator.Exclusion',
  118. config: {
  119. message: '是已排除的值'
  120. }
  121. });
  122. Ext.define('Ext.locale.zh_CN.data.validator.Format', {
  123. override: 'Ext.data.validator.Format',
  124. config: {
  125. message: '它的格式不对'
  126. }
  127. });
  128. Ext.define('Ext.locale.zh_CN.data.validator.IPAddress', {
  129. override: 'Ext.data.validator.IPAddress',
  130. config: {
  131. message: '不是有效的IP地址'
  132. }
  133. });
  134. Ext.define('Ext.locale.zh_CN.data.validator.Inclusion', {
  135. override: 'Ext.data.validator.Inclusion',
  136. config: {
  137. message: '它不在可接受值的列表中'
  138. }
  139. });
  140. Ext.define('Ext.locale.zh_CN.data.validator.Length', {
  141. override: 'Ext.data.validator.Length',
  142. config: {
  143. minOnlyMessage: '长度必须至少为{0}',
  144. maxOnlyMessage: '长度不得超过{0}',
  145. bothMessage: '长度必须介于{0}和{1}之间'
  146. }
  147. });
  148. Ext.define('Ext.locale.zh_CN.data.validator.Number', {
  149. override: 'Ext.data.validator.Number',
  150. config: {
  151. message: '不是有效的数字'
  152. }
  153. });
  154. Ext.define('Ext.locale.zh_CN.data.validator.Phone', {
  155. override: 'Ext.data.validator.Phone',
  156. config: {
  157. message: '不是有效的电话号码'
  158. }
  159. });
  160. Ext.define('Ext.locale.zh_CN.data.validator.Presence', {
  161. override: 'Ext.data.validator.Presence',
  162. config: {
  163. message: '必须在场'
  164. }
  165. });
  166. Ext.define('Ext.locale.zh_CN.data.validator.Range', {
  167. override: 'Ext.data.validator.Range',
  168. config: {
  169. nanMessage: '它必须是数字',
  170. minOnlyMessage: '必须至少为{0}',
  171. maxOnlyMessage: '必须不超过{0}',
  172. bothMessage: '必须在 {0} 和 {1} 之间'
  173. }
  174. });
  175. Ext.define('Ext.locale.zh_CN.data.validator.Time', {
  176. override: 'Ext.data.validator.Time',
  177. config: {
  178. message: '不是有效的时间'
  179. }
  180. });
  181. Ext.define('Ext.locale.zh_CN.data.validator.Url', {
  182. override: 'Ext.data.validator.Url',
  183. config: {
  184. message: '不是有效的URL'
  185. }
  186. });
  187. Ext.define('Ext.locale.zh_CN.dataview.Abstract', {
  188. override: 'Ext.dataview.Abstract',
  189. config: {
  190. loadingText: '读取中...'
  191. }
  192. });
  193. Ext.define("Ext.locale.zh_CN.dataview.DataView", {
  194. override: "Ext.dataview.DataView",
  195. config: {
  196. emptyText: "没有要显示的数据"
  197. }
  198. });
  199. Ext.define('Ext.locale.zh_CN.dataview.EmptyText', {
  200. override: 'Ext.dataview.EmptyText',
  201. config: {
  202. html: '没有数据显示'
  203. }
  204. });
  205. Ext.define('Ext.locale.zh_CN.dataview.List', {
  206. override: 'Ext.dataview.List',
  207. config: {
  208. loadingText: '读取中...'
  209. }
  210. });
  211. Ext.define('Ext.locale.zh_CN.dataview.plugin.ListPaging', {
  212. override: 'Ext.dataview.plugin.ListPaging',
  213. config: {
  214. loadMoreText: '加载更多...',
  215. noMoreRecordsText: '没有更多记录'
  216. }
  217. });
  218. /**
  219. * Simplified Chinese translation
  220. */
  221. Ext.onReady(function() {
  222. var parseCodes;
  223. if (Ext.Date) {
  224. Ext.Date.monthNames = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月",
  225. "九月", "十月", "十一月", "十二月"];
  226. Ext.Date.dayNames = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
  227. Ext.Date.formatCodes.a = "(this.getHours() < 12 ? '上午' : '下午')";
  228. Ext.Date.formatCodes.A = "(this.getHours() < 12 ? '上午' : '下午')";
  229. parseCodes = {
  230. g: 1,
  231. c: "if (/(上午)/i.test(results[{0}])) {\n" +
  232. "if (!h || h == 12) { h = 0; }\n" +
  233. "} else { if (!h || h < 12) { h = (h || 0) + 12; }}",
  234. s: "(上午|下午)",
  235. calcAtEnd: true
  236. };
  237. Ext.Date.parseCodes.a = Ext.Date.parseCodes.A = parseCodes;
  238. }
  239. if (Ext.util && Ext.util.Format) {
  240. Ext.apply(Ext.util.Format, {
  241. thousandSeparator: ',',
  242. decimalSeparator: '.',
  243. currencySign: '\u00a5',
  244. // Chinese Yuan
  245. dateFormat: 'y年m月d日'
  246. });
  247. }
  248. });
  249. Ext.define('Ext.locale.zh_CN.field.Date', {
  250. override: 'Ext.field.Date',
  251. minDateMessage: '此字段中的日期必须在 {0} 之后',
  252. maxDateMessage: '此字段中的日期必须为 {0}'
  253. });
  254. Ext.define('Ext.locale.zh_CN.field.Field', {
  255. override: 'Ext.field.Field',
  256. config: {
  257. requiredMessage: '此字段是必填字段',
  258. validationMessage: '格式错误'
  259. }
  260. });
  261. Ext.define("Ext.locale.zh_CN.field.FileButton", {
  262. override: "Ext.field.FileButton",
  263. config: {
  264. text: '评论......'
  265. }
  266. });
  267. Ext.define('Ext.locale.zh_CN.field.Number', {
  268. override: 'Ext.field.Number',
  269. decimalsText: '最大十进制数 (0)',
  270. minValueText: '该输入项的最小值是 {0}',
  271. maxValueText: '该输入项的最大值是 {0}',
  272. badFormatMessage: '{0} 不是有效数值'
  273. });
  274. Ext.define('Ext.locale.zh_CN.field.Text', {
  275. override: 'Ext.field.Text',
  276. badFormatMessage: '值与所需格式不匹配',
  277. config: {
  278. requiredMessage: '此字段是必填字段',
  279. validationMessage: '格式错误'
  280. }
  281. });
  282. Ext.define("Ext.locale.zh_CN.grid.filters.menu.Base", {
  283. override: "Ext.grid.filters.menu.Base",
  284. config: {
  285. text: "过滤器"
  286. }
  287. });
  288. Ext.define("Ext.locale.zh_CN.grid.locked.Grid", {
  289. override: 'Ext.grid.locked.Grid',
  290. config: {
  291. columnMenu: {
  292. items: {
  293. region: {
  294. text: '区域'
  295. }
  296. }
  297. },
  298. regions: {
  299. left: {
  300. menuLabel: '锁定(左)'
  301. },
  302. center: {
  303. menuLabel: '解锁'
  304. },
  305. right: {
  306. menuLabel: '锁定(右)'
  307. }
  308. }
  309. }
  310. });
  311. Ext.define("Ext.locale.zh_CN.grid.menu.Columns", {
  312. override: "Ext.grid.menu.Columns",
  313. config: {
  314. // update
  315. text: "列"
  316. }
  317. });
  318. Ext.define("Ext.locale.zh_CN.grid.menu.GroupByThis", {
  319. override: "Ext.grid.menu.GroupByThis",
  320. config: {
  321. text: "由此分组"
  322. }
  323. });
  324. Ext.define("Ext.locale.zh_CN.grid.menu.ShowInGroups", {
  325. override: "Ext.grid.menu.ShowInGroups",
  326. config: {
  327. text: "分组显示"
  328. }
  329. });
  330. Ext.define("Ext.locale.zh_CN.grid.menu.SortAsc", {
  331. override: "Ext.grid.menu.SortAsc",
  332. config: {
  333. // update
  334. text: "正序"
  335. }
  336. });
  337. Ext.define("Ext.locale.zh_CN.grid.menu.SortDesc", {
  338. override: "Ext.grid.menu.SortDesc",
  339. config: {
  340. // update
  341. text: "倒序"
  342. }
  343. });
  344. Ext.define("Ext.locale.zh_CN.grid.plugin.RowDragDrop", {
  345. override: "Ext.grid.plugin.RowDragDrop",
  346. dragText: "选择了 {0} 行"
  347. });
  348. Ext.define('Ext.locale.zh_CN.panel.Collapser', {
  349. override: 'Ext.panel.Collapser',
  350. config: {
  351. collapseToolText: "关闭面板",
  352. expandToolText: "展开面板"
  353. }
  354. });
  355. Ext.define('Ext.locale.zh_CN.panel.Date', {
  356. override: 'Ext.panel.Date',
  357. config: {
  358. nextText: '下个月 (Ctrl+Right)',
  359. prevText: '上个月 (Ctrl+Left',
  360. buttons: {
  361. footerTodayButton: {
  362. text: "今天"
  363. }
  364. }
  365. }
  366. });
  367. Ext.define('Ext.locale.zh_CN.picker.Date', {
  368. override: 'Ext.picker.Date',
  369. config: {
  370. doneButton: 'done',
  371. monthText: '月',
  372. dayText: '日',
  373. yearText: '年'
  374. }
  375. });
  376. Ext.define('Ext.locale.zh_CN.picker.Picker', {
  377. override: 'Ext.picker.Picker',
  378. config: {
  379. doneButton: 'done',
  380. cancelButton: '取消'
  381. }
  382. });