en_US.js 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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 = "en-US";
  12. /* Date
  13. -----------------------------------------------------------------------------*/
  14. mini.dateInfo = {
  15. monthsLong: ["January", "Febraury", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
  16. monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
  17. daysLong: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
  18. daysShort: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
  19. quarterLong: ['Q1', 'Q2', 'Q3', 'Q4'],
  20. quarterShort: ['Q1', 'Q2', 'Q3', 'Q4'],
  21. halfYearLong: ['first half', 'second half'],
  22. patterns: {
  23. "d": "M/d/yyyy",
  24. "D": "dddd, MMMM dd, yyyy",
  25. "f": "dddd, MMMM dd, yyyy H:mm tt",
  26. "F": "dddd, MMMM dd, yyyy H:mm:ss tt",
  27. "g": "M/d/yyyy H:mm tt",
  28. "G": "M/d/yyyy H:mm:ss tt",
  29. "m": "MMMM dd",
  30. "o": "yyyy-MM-ddTHH:mm:ss.fff",
  31. "s": "yyyy-MM-ddTHH:mm:ss",
  32. "t": "H:mm tt",
  33. "T": "H:mm:ss tt",
  34. "U": "dddd, MMMM dd, yyyy HH:mm:ss tt",
  35. "y": "MMM, yyyy"
  36. },
  37. tt: {
  38. "AM": "AM",
  39. "PM": "PM"
  40. },
  41. ten: {
  42. "Early": "Early",
  43. "Mid": "Mid",
  44. "Late": "Late"
  45. },
  46. today: 'Today',
  47. clockType: 24
  48. };
  49. /* Number
  50. -----------------------------------------------------------------------------*/
  51. mini.cultures["en"] = {
  52. name: "en",
  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("en");
  80. /* MessageBox
  81. -----------------------------------------------------------------------------*/
  82. if (mini.MessageBox) {
  83. mini.copyTo(mini.MessageBox, {
  84. alertTitle: "Alert",
  85. confirmTitle: "Confirm",
  86. prompTitle: "Prompt",
  87. prompMessage: "Input content: ",
  88. buttonText: {
  89. ok: "Ok", //"OK",
  90. cancel: "Cancel", //"Cancel",
  91. yes: "Yes", //"Yes",
  92. no: "No"//"No"
  93. }
  94. });
  95. };
  96. /* Calendar
  97. -----------------------------------------------------------------------------*/
  98. if (mini.Calendar) {
  99. mini.copyTo(mini.Calendar.prototype, {
  100. firstDayOfWeek: 0,
  101. yesterdayText: "Yesterday",
  102. todayText: "Today",
  103. clearText: "Clear",
  104. okText: "OK",
  105. cancelText: "Cancel",
  106. daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  107. format: "MMM, yyyy",
  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 = "Not null";
  117. clazz.prototype.loadingMsg = "Loading...";
  118. }
  119. }
  120. /* VTypes
  121. -----------------------------------------------------------------------------*/
  122. mini.copyTo(mini.VTypes, {
  123. minDateErrorText: 'Date can not be less than {0}',
  124. maxDateErrorText: 'Date can not be greater than {0}',
  125. uniqueErrorText: "This field is unique.",
  126. requiredErrorText: "This field is required.",
  127. emailErrorText: "Please enter a valid email address.",
  128. urlErrorText: "Please enter a valid URL.",
  129. floatErrorText: "Please enter a valid number.",
  130. intErrorText: "Please enter only digits",
  131. dateErrorText: "Please enter a valid date. Date format is {0}",
  132. maxLengthErrorText: "Please enter no more than {0} characters.",
  133. minLengthErrorText: "Please enter at least {0} characters.",
  134. maxErrorText: "Please enter a value less than or equal to {0}.",
  135. minErrorText: "Please enter a value greater than or equal to {0}.",
  136. rangeLengthErrorText: "Please enter a value between {0} and {1} characters long.",
  137. rangeCharErrorText: "Please enter a value between {0} and {1} characters long.",
  138. rangeErrorText: "Please enter a value between {0} and {1}."
  139. });
  140. if (mini.FileUpload) {
  141. mini.FileUpload.prototype.buttonText = "Browse..."
  142. }
  143. if (mini.HtmlFile) {
  144. mini.HtmlFile.prototype.buttonText = "Browse..."
  145. }
  146. /* Pager
  147. -----------------------------------------------------------------------------*/
  148. if (mini.Pager) {
  149. mini.copyTo(mini.Pager.prototype, {
  150. firstText: "First",
  151. prevText: "Prev",
  152. nextText: "Next",
  153. lastText: "Last",
  154. pageInfoText: "Pre page {0} records , all {1} records."
  155. });
  156. }
  157. /* DataGrid
  158. -----------------------------------------------------------------------------*/
  159. if (mini.DataGrid) {
  160. mini.copyTo(mini.DataGrid.prototype, {
  161. emptyText: "No data returned."
  162. });
  163. }
  164. /* Gantt
  165. -----------------------------------------------------------------------------*/
  166. if (window.mini.Gantt) {
  167. mini.GanttView.ShortWeeks = [
  168. "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"
  169. ];
  170. mini.GanttView.LongWeeks = [
  171. "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
  172. ];
  173. mini.Gantt.PredecessorLinkType = [
  174. { ID: 0, Name: 'Finish-Finish(FF)', Short: 'FF' },
  175. { ID: 1, Name: 'Finish-Start(FS)', Short: 'FS' },
  176. { ID: 2, Name: 'Start-Finish(SF)', Short: 'SF' },
  177. { ID: 3, Name: 'Start-Start(SS)', Short: 'SS' }
  178. ];
  179. mini.Gantt.ConstraintType = [
  180. { ID: 0, Name: 'The sooner the better' },
  181. { ID: 1, Name: 'The later the better' },
  182. { ID: 2, Name: 'Must be begin in' },
  183. { ID: 3, Name: 'Must be completed in' },
  184. { ID: 4, Name: 'Beginning no earlier than ...' },
  185. { ID: 5, Name: 'Beginning no later than ...' },
  186. { ID: 6, Name: 'Completed no earlier than ...' },
  187. { ID: 7, Name: 'Completed no later than ...' }
  188. ];
  189. mini.copyTo(mini.Gantt, {
  190. ID_Text: "ID",
  191. Name_Text: "Name",
  192. PercentComplete_Text: "Progress",
  193. Duration_Text: "Duration",
  194. Start_Text: "Start",
  195. Finish_Text: "Finish",
  196. Critical_Text: "Critical",
  197. PredecessorLink_Text: "PredecessorLink",
  198. Work_Text: "Work",
  199. Priority_Text: "Priority",
  200. Weight_Text: "Weight",
  201. OutlineNumber_Text: "OutlineNumber",
  202. OutlineLevel_Text: "OutlineLevel",
  203. ActualStart_Text: "ActualStart",
  204. ActualFinish_Text: "ActualFinish",
  205. WBS_Text: "WBS",
  206. ConstraintType_Text: "ConstraintType",
  207. ConstraintDate_Text: "ConstraintDate",
  208. Department_Text: "Department",
  209. Principal_Text: "Principal",
  210. Assignments_Text: "Assignments",
  211. Summary_Text: "Summary",
  212. Task_Text: "Task",
  213. Baseline_Text: "Baseline",
  214. LinkType_Text: "LinkType",
  215. LinkLag_Text: "LinkLag",
  216. From_Text: "From",
  217. To_Text: "To",
  218. Goto_Text: "Goto",
  219. UpGrade_Text: "UpGrade",
  220. DownGrade_Text: "DownGrade",
  221. Add_Text: "Add Task",
  222. Edit_Text: "Edit Task",
  223. Remove_Text: "Remove Task",
  224. Move_Text: "Move Task",
  225. ZoomIn_Text: "ZoomIn",
  226. ZoomOut_Text: "ZoomOut",
  227. Deselect_Text: "Un Select",
  228. Split_Text: "Split Task"
  229. });
  230. }