9153151cafc525ecd1eececcf4f4594de9bd465b.svn-base 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /*
  2. * Simplified Chinese translation By DavidHu 09 April 2007
  3. */
  4. Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">加载中...</div>';
  5. if (Ext.View) {
  6. Ext.View.prototype.emptyText = "";
  7. }
  8. if (Ext.grid.Grid) {
  9. Ext.grid.Grid.prototype.ddText = "{0} 选择行";
  10. }
  11. if (Ext.TabPanelItem) {
  12. Ext.TabPanelItem.prototype.closeText = "关闭";
  13. }
  14. if (Ext.form.Field) {
  15. Ext.form.Field.prototype.invalidText = "输入值非法";
  16. }
  17. Date.monthNames = ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月",
  18. "十一月", "十二月"];
  19. Date.dayNames = ["日", "一", "二", "三", "四", "五", "六"];
  20. if (Ext.MessageBox) {
  21. Ext.MessageBox.buttonText = {
  22. ok : "确定",
  23. cancel : "取消",
  24. yes : "是",
  25. no : "否"
  26. };
  27. }
  28. if (Ext.util.Format) {
  29. Ext.util.Format.date = function(v, format) {
  30. if (!v)
  31. return "";
  32. if (!(v instanceof Date))
  33. v = new Date(Date.parse(v));
  34. return v.dateFormat(format || "y年m月d日");
  35. };
  36. }
  37. if (Ext.DatePicker) {
  38. Ext.apply(Ext.DatePicker.prototype, {
  39. todayText : "今天",
  40. minText : "日期在最小日期之前",
  41. maxText : "日期在最大日期之后",
  42. disabledDaysText : "",
  43. disabledDatesText : "",
  44. monthNames : Date.monthNames,
  45. dayNames : Date.dayNames,
  46. nextText : '下月 (Control+Right)',
  47. prevText : '上月 (Control+Left)',
  48. monthYearText : '选择一个月 (Control+Up/Down 来改变年)',
  49. todayTip : "{0} (空格键选择)",
  50. format : "y年m月d日"
  51. });
  52. }
  53. if (Ext.PagingToolbar) {
  54. Ext.apply(Ext.PagingToolbar.prototype, {
  55. beforePageText : "页",
  56. afterPageText : "页共 {0} 页",
  57. firstText : "第一页",
  58. prevText : "前一页",
  59. nextText : "下一页",
  60. lastText : "最后页",
  61. refreshText : "刷新",
  62. displayMsg : "显示 {0} - {1},共 {2} 条",
  63. emptyMsg : '没有数据需要显示'
  64. });
  65. }
  66. if (Ext.form.TextField) {
  67. Ext.apply(Ext.form.TextField.prototype, {
  68. minLengthText : "该输入项的最小长度是 {0}",
  69. maxLengthText : "该输入项的最大长度是 {0}",
  70. blankText : "该输入项为必输项",
  71. regexText : "",
  72. emptyText : null
  73. });
  74. }
  75. if (Ext.form.NumberField) {
  76. Ext.apply(Ext.form.NumberField.prototype, {
  77. minText : "该输入项的最小值是 {0}",
  78. maxText : "该输入项的最大值是 {0}",
  79. nanText : "{0} 不是有效数值"
  80. });
  81. }
  82. if (Ext.form.DateField) {
  83. Ext.apply(Ext.form.DateField.prototype, {
  84. disabledDaysText : "禁用",
  85. disabledDatesText : "禁用",
  86. minText : "该输入项的日期必须在 {0} 之后",
  87. maxText : "该输入项的日期必须在 {0} 之前",
  88. invalidText : "{0} 是无效的日期 - 必须符合格式: {1}",
  89. format : "y年m月d日"
  90. });
  91. }
  92. if (Ext.form.ComboBox) {
  93. Ext.apply(Ext.form.ComboBox.prototype, {
  94. loadingText : "加载...",
  95. valueNotFoundText : undefined
  96. });
  97. }
  98. if (Ext.form.VTypes) {
  99. Ext.apply(Ext.form.VTypes, {
  100. emailText : '该输入项必须是电子邮件地址,格式如: "user@domain.com"',
  101. urlText : '该输入项必须是URL地址,格式如: "http:/' + '/www.domain.com"',
  102. alphaText : '该输入项只能包含字符和_',
  103. alphanumText : '该输入项只能包含字符,数字和_'
  104. });
  105. }
  106. if (Ext.grid.GridView) {
  107. Ext.apply(Ext.grid.GridView.prototype, {
  108. sortAscText : "正序",
  109. sortDescText : "逆序",
  110. lockText : "锁列",
  111. unlockText : "解锁列",
  112. columnsText : "列"
  113. });
  114. }
  115. if (Ext.grid.PropertyColumnModel) {
  116. Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
  117. nameText : "名称",
  118. valueText : "值",
  119. dateFormat : "y年m月d日"
  120. });
  121. }
  122. if (Ext.layout.BorderLayout.SplitRegion) {
  123. Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
  124. splitTip : "拖动来改变尺寸.",
  125. collapsibleSplitTip : "拖动来改变尺寸. 双击隐藏."
  126. });
  127. }