zh_CN.js 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. /**
  2. * jQuery MiniUI v3.0
  3. *
  4. * Web Site : http://www.miniui.com
  5. *
  6. * Commercial License : http://www.miniui.com/license
  7. *
  8. * Copyright(c) 2012 All Rights Reserved. Shanghai PusSoft Co., Ltd (上海普加软件有限公司) [ services@plusoft.com.cn ].
  9. *
  10. */
  11. mini.locale = "zh_CN";
  12. /* Date
  13. -----------------------------------------------------------------------------*/
  14. mini.dateInfo = {
  15. monthsLong: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
  16. monthsShort: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
  17. daysLong: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
  18. daysShort: ["日", "一", "二", "三", "四", "五", "六"],
  19. quarterLong: ['一季度', '二季度', '三季度', '四季度'],
  20. quarterShort: ['Q1', 'Q2', 'Q2', 'Q4'],
  21. halfYearLong: ['上半年', '下半年'],
  22. patterns: {
  23. "d": "yyyy-M-d",
  24. "D": "yyyy年M月d日",
  25. "f": "yyyy年M月d日 H:mm",
  26. "F": "yyyy年M月d日 H:mm:ss",
  27. "g": "yyyy-M-d H:mm",
  28. "G": "yyyy-M-d H:mm:ss",
  29. "m": "MMMd日",
  30. "o": "yyyy-MM-ddTHH:mm:ss.fff",
  31. "s": "yyyy-MM-ddTHH:mm:ss",
  32. "t": "H:mm",
  33. "T": "H:mm:ss",
  34. "U": "yyyy年M月d日 HH:mm:ss",
  35. "y": "yyyy年MM月"
  36. },
  37. tt: {
  38. "AM": "上午",
  39. "PM": "下午"
  40. },
  41. ten: {
  42. "Early": "上旬",
  43. "Mid": "中旬",
  44. "Late": "下旬"
  45. },
  46. today: '今天',
  47. clockType: 24
  48. };
  49. /* Number
  50. -----------------------------------------------------------------------------*/
  51. mini.cultures["zh-CN"] = {
  52. name: "zh-CN",
  53. numberFormat: {
  54. number: {
  55. pattern: ["n", "-n"],
  56. decimals: 2,
  57. decimalsSeparator: ".",
  58. groupSeparator: ",",
  59. groupSize: [3]
  60. },
  61. percent: {
  62. pattern: ["n%", "-n%"],
  63. decimals: 2,
  64. decimalsSeparator: ".",
  65. groupSeparator: ",",
  66. groupSize: [3],
  67. symbol: "%"
  68. },
  69. currency: {
  70. pattern: ["$n", "$-n"],
  71. decimals: 2,
  72. decimalsSeparator: ".",
  73. groupSeparator: ",",
  74. groupSize: [3],
  75. symbol: "¥"
  76. }
  77. }
  78. }
  79. mini.culture("zh-CN");
  80. /* MessageBox
  81. -----------------------------------------------------------------------------*/
  82. if(mini.MessageBox){
  83. mini.copyTo(mini.MessageBox, {
  84. alertTitle: "提醒",
  85. confirmTitle: "确认",
  86. prompTitle: "输入",
  87. prompMessage: "请输入内容:",
  88. buttonText: {
  89. ok: "确定", //"OK",
  90. cancel: "取消", //"Cancel",
  91. yes: "是", //"Yes",
  92. no: "否"//"No"
  93. }
  94. });
  95. };
  96. /* Calendar
  97. -----------------------------------------------------------------------------*/
  98. if (mini.Calendar) {
  99. mini.copyTo(mini.Calendar.prototype, {
  100. firstDayOfWeek: 0,
  101. yesterdayText: "昨天",
  102. todayText: "今天",
  103. clearText: "清除",
  104. okText: "确定",
  105. cancelText: "取消",
  106. daysShort: ["日", "一", "二", "三", "四", "五", "六"],
  107. format: "yyyy年MM月",
  108. timeFormat: 'H:mm'
  109. });
  110. }
  111. /* required | loadingMsg
  112. -----------------------------------------------------------------------------*/
  113. for (var id in mini) {
  114. var clazz = mini[id];
  115. if (clazz && clazz.prototype && clazz.prototype.isControl) {
  116. clazz.prototype.requiredErrorText = "不能为空";
  117. clazz.prototype.loadingMsg = "加载中...";
  118. }
  119. }
  120. /* VTypes
  121. -----------------------------------------------------------------------------*/
  122. if (mini.VTypes) {
  123. mini.copyTo(mini.VTypes, {
  124. minDateErrorText: '不能小于日期 {0}',
  125. maxDateErrorText: '不能大于日期 {0}',
  126. uniqueErrorText: "字段不能重复",
  127. requiredErrorText: "不能为空",
  128. emailErrorText: "请输入邮件格式",
  129. urlErrorText: "请输入URL格式",
  130. floatErrorText: "请输入数字",
  131. intErrorText: "请输入整数",
  132. dateErrorText: "请输入日期格式 {0}",
  133. maxLengthErrorText: "不能超过 {0} 个字符",
  134. minLengthErrorText: "不能少于 {0} 个字符",
  135. maxErrorText: "数字不能大于 {0} ",
  136. minErrorText: "数字不能小于 {0} ",
  137. rangeLengthErrorText: "字符长度必须在 {0} 到 {1} 之间",
  138. rangeCharErrorText: "字符数必须在 {0} 到 {1} 之间",
  139. rangeErrorText: "数字必须在 {0} 到 {1} 之间"
  140. });
  141. }
  142. /* Pager
  143. -----------------------------------------------------------------------------*/
  144. if (mini.Pager) {
  145. mini.copyTo(mini.Pager.prototype, {
  146. firstText: "首页",
  147. prevText: "上一页",
  148. nextText: "下一页",
  149. lastText: "尾页",
  150. pageInfoText: "每页 {0} 条, 共 {1} 条"
  151. });
  152. }
  153. /* DataGrid
  154. -----------------------------------------------------------------------------*/
  155. if (mini.DataGrid) {
  156. mini.copyTo(mini.DataGrid.prototype, {
  157. emptyText: "没有返回的数据"
  158. });
  159. }
  160. if (mini.FileUpload) {
  161. mini.FileUpload.prototype.buttonText = "浏览..."
  162. }
  163. if (mini.HtmlFile) {
  164. mini.HtmlFile.prototype.buttonText = "浏览..."
  165. }
  166. /* Gantt
  167. -----------------------------------------------------------------------------*/
  168. if (window.mini.Gantt) {
  169. mini.GanttView.ShortWeeks = [
  170. '日', '一', '二', '三', '四', '五', '六'
  171. ];
  172. mini.GanttView.LongWeeks = [
  173. '星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'
  174. ];
  175. mini.Gantt.PredecessorLinkType = [
  176. { ID: 0, Name: '完成-完成(FF)', Short: 'FF' },
  177. { ID: 1, Name: '完成-开始(FS)', Short: 'FS' },
  178. { ID: 2, Name: '开始-完成(SF)', Short: 'SF' },
  179. { ID: 3, Name: '开始-开始(SS)', Short: 'SS' }
  180. ];
  181. mini.Gantt.ConstraintType = [
  182. { ID: 0, Name: '越早越好' },
  183. { ID: 1, Name: '越晚越好' },
  184. { ID: 2, Name: '必须开始于' },
  185. { ID: 3, Name: '必须完成于' },
  186. { ID: 4, Name: '不得早于...开始' },
  187. { ID: 5, Name: '不得晚于...开始' },
  188. { ID: 6, Name: '不得早于...完成' },
  189. { ID: 7, Name: '不得晚于...完成' }
  190. ];
  191. mini.copyTo(mini.Gantt, {
  192. ID_Text: "标识号",
  193. Name_Text: "任务名称",
  194. PercentComplete_Text: "进度",
  195. Duration_Text: "工期",
  196. Start_Text: "开始日期",
  197. Finish_Text: "完成日期",
  198. Critical_Text: "关键任务",
  199. PredecessorLink_Text: "前置任务",
  200. Work_Text: "工时",
  201. Priority_Text: "重要级别",
  202. Weight_Text: "权重",
  203. OutlineNumber_Text: "大纲字段",
  204. OutlineLevel_Text: "任务层级",
  205. ActualStart_Text: "实际开始日期",
  206. ActualFinish_Text: "实际完成日期",
  207. WBS_Text: "WBS",
  208. ConstraintType_Text: "限制类型",
  209. ConstraintDate_Text: "限制日期",
  210. Department_Text: "部门",
  211. Principal_Text: "负责人",
  212. Assignments_Text: "资源名称",
  213. Summary_Text: "摘要任务",
  214. Task_Text: "任务",
  215. Baseline_Text: "比较基准",
  216. LinkType_Text: "链接类型",
  217. LinkLag_Text: "延隔时间",
  218. From_Text: "从",
  219. To_Text: "到",
  220. Goto_Text: "转到任务",
  221. UpGrade_Text: "升级",
  222. DownGrade_Text: "降级",
  223. Add_Text: "新增",
  224. Edit_Text: "编辑",
  225. Remove_Text: "删除",
  226. Move_Text: "移动",
  227. ZoomIn_Text: "放大",
  228. ZoomOut_Text: "缩小",
  229. Deselect_Text: "取消选择",
  230. Split_Text: "拆分任务"
  231. });
  232. }