ext-lang-zh_CN.js 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. /*
  2. This file is part of Ext JS 4
  3. Copyright (c) 2011 Sencha Inc
  4. Contact: http://www.sencha.com/contact
  5. GNU General Public License Usage
  6. This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  7. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
  8. */
  9. /**
  10. * Simplified Chinese translation
  11. * By DavidHu
  12. * 09 April 2007
  13. *
  14. * update by andy_ghg
  15. * 2009-10-22 15:00:57
  16. */
  17. Ext.onReady(function(){
  18. if(Ext.Updater){
  19. Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">加载中...</div>';
  20. }
  21. if(Ext.view.View){
  22. Ext.view.View.prototype.emptyText = "";
  23. }
  24. if(Ext.grid.Panel){
  25. Ext.grid.Panel.prototype.ddText = "选择了 {0} 行";
  26. }
  27. if(Ext.TabPanelItem){
  28. Ext.TabPanelItem.prototype.closeText = "关闭此标签";
  29. }
  30. if(Ext.form.field.Base){
  31. Ext.form.field.Base.prototype.invalidText = "输入值非法";
  32. }
  33. if (Ext.LoadMask) {
  34. Ext.LoadMask.prototype.msg = "读取中...";
  35. }
  36. if(Ext.Date){
  37. Ext.Date.monthNames = [
  38. "一月",
  39. "二月",
  40. "三月",
  41. "四月",
  42. "五月",
  43. "六月",
  44. "七月",
  45. "八月",
  46. "九月",
  47. "十月",
  48. "十一月",
  49. "十二月"
  50. ];
  51. Ext.Date.dayNames = [
  52. "日",
  53. "一",
  54. "二",
  55. "三",
  56. "四",
  57. "五",
  58. "六"
  59. ];
  60. Ext.Date.formatCodes.a = "(this.getHours() < 12 ? '上午' : '下午')";
  61. Ext.Date.formatCodes.A = "(this.getHours() < 12 ? '上午' : '下午')";
  62. }
  63. if(Ext.MessageBox){
  64. Ext.MessageBox.buttonText = {
  65. ok : "确定",
  66. cancel : "取消",
  67. yes : "是",
  68. no : "否"
  69. };
  70. }
  71. if(Ext.util.Format){
  72. Ext.apply(Ext.util.Format, {
  73. thousandSeparator: '.',
  74. decimalSeparator: ',',
  75. currencySign: '\u00a5', // Chinese Yuan
  76. dateFormat: 'y年m月d日'
  77. });
  78. }
  79. if(Ext.picker.Date){
  80. Ext.apply(Ext.picker.Date.prototype, {
  81. todayText : "今天",
  82. minText : "日期必须大于最小允许日期",//update
  83. maxText : "日期必须小于最大允许日期",//update
  84. disabledDaysText : "",
  85. disabledDatesText : "",
  86. monthNames : Ext.Date.monthNames,
  87. dayNames : Ext.Date.dayNames,
  88. nextText : '下个月 (Ctrl+Right)',
  89. prevText : '上个月 (Ctrl+Left)',
  90. monthYearText : '选择一个月 (Control+Up/Down 来改变年份)',//update
  91. todayTip : "{0} (空格键选择)",
  92. format : "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. });
  139. }
  140. if(Ext.form.field.ComboBox){
  141. Ext.apply(Ext.form.field.ComboBox.prototype, {
  142. loadingText : "加载中...",
  143. valueNotFoundText : undefined
  144. });
  145. }
  146. if(Ext.form.field.VTypes){
  147. Ext.apply(Ext.form.field.VTypes, {
  148. emailText : '该输入项必须是电子邮件地址,格式如: "user@example.com"',
  149. urlText : '该输入项必须是URL地址,格式如: "http:/'+'/www.example.com"',
  150. alphaText : '该输入项只能包含半角字母和_',//update
  151. alphanumText : '该输入项只能包含半角字母,数字和_'//update
  152. });
  153. }
  154. //add HTMLEditor's tips by andy_ghg
  155. if(Ext.form.field.HtmlEditor){
  156. Ext.apply(Ext.form.field.HtmlEditor.prototype, {
  157. createLinkText : '添加超级链接:',
  158. buttonTips : {
  159. bold : {
  160. title: '粗体 (Ctrl+B)',
  161. text: '将选中的文字设置为粗体',
  162. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  163. },
  164. italic : {
  165. title: '斜体 (Ctrl+I)',
  166. text: '将选中的文字设置为斜体',
  167. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  168. },
  169. underline : {
  170. title: '下划线 (Ctrl+U)',
  171. text: '给所选文字加下划线',
  172. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  173. },
  174. increasefontsize : {
  175. title: '增大字体',
  176. text: '增大字号',
  177. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  178. },
  179. decreasefontsize : {
  180. title: '缩小字体',
  181. text: '减小字号',
  182. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  183. },
  184. backcolor : {
  185. title: '以不同颜色突出显示文本',
  186. text: '使文字看上去像是用荧光笔做了标记一样',
  187. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  188. },
  189. forecolor : {
  190. title: '字体颜色',
  191. text: '更改字体颜色',
  192. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  193. },
  194. justifyleft : {
  195. title: '左对齐',
  196. text: '将文字左对齐',
  197. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  198. },
  199. justifycenter : {
  200. title: '居中',
  201. text: '将文字居中对齐',
  202. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  203. },
  204. justifyright : {
  205. title: '右对齐',
  206. text: '将文字右对齐',
  207. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  208. },
  209. insertunorderedlist : {
  210. title: '项目符号',
  211. text: '开始创建项目符号列表',
  212. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  213. },
  214. insertorderedlist : {
  215. title: '编号',
  216. text: '开始创建编号列表',
  217. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  218. },
  219. createlink : {
  220. title: '转成超级链接',
  221. text: '将所选文本转换成超级链接',
  222. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  223. },
  224. sourceedit : {
  225. title: '代码视图',
  226. text: '以代码的形式展现文本',
  227. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  228. }
  229. }
  230. });
  231. }
  232. if(Ext.grid.header.Container){
  233. Ext.apply(Ext.grid.header.Container.prototype, {
  234. sortAscText : "正序",//update
  235. sortDescText : "倒序",//update
  236. lockText : "锁定列",//update
  237. unlockText : "解除锁定",//update
  238. columnsText : "列"
  239. });
  240. }
  241. if(Ext.grid.PropertyColumnModel){
  242. Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
  243. nameText : "名称",
  244. valueText : "值",
  245. dateFormat : "y年m月d日"
  246. });
  247. }
  248. if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
  249. Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
  250. splitTip : "拖动来改变尺寸.",
  251. collapsibleSplitTip : "拖动来改变尺寸. 双击隐藏."
  252. });
  253. }
  254. });