grid.locale-en.js 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. ;(function($){
  2. /**
  3. * jqGrid English Translation
  4. * Tony Tomov tony@trirand.com
  5. * http://trirand.com/blog/
  6. * Dual licensed under the MIT and GPL licenses:
  7. * http://www.opensource.org/licenses/mit-license.php
  8. * http://www.gnu.org/licenses/gpl.html
  9. **/
  10. $.jgrid = $.jgrid || {};
  11. $.extend($.jgrid,{
  12. defaults : {
  13. recordtext: "View {0} - {1} of {2}",
  14. emptyrecords: "No records to view",
  15. loadtext: "Loading...",
  16. pgtext : "Page {0} of {1}"
  17. },
  18. search : {
  19. caption: "Search...",
  20. Find: "Find",
  21. Reset: "Reset",
  22. odata: [{ oper:'eq', text:'equal'},{ oper:'ne', text:'not equal'},{ oper:'lt', text:'less'},{ oper:'le', text:'less or equal'},{ oper:'gt', text:'greater'},{ oper:'ge', text:'greater or equal'},{ oper:'bw', text:'begins with'},{ oper:'bn', text:'does not begin with'},{ oper:'in', text:'is in'},{ oper:'ni', text:'is not in'},{ oper:'ew', text:'ends with'},{ oper:'en', text:'does not end with'},{ oper:'cn', text:'contains'},{ oper:'nc', text:'does not contain'}],
  23. groupOps: [ { op: "AND", text: "all" }, { op: "OR", text: "any" } ]
  24. },
  25. edit : {
  26. addCaption: "Add Record",
  27. editCaption: "Edit Record",
  28. bSubmit: "Submit",
  29. bCancel: "Cancel",
  30. bClose: "Close",
  31. saveData: "Data has been changed! Save changes?",
  32. bYes : "Yes",
  33. bNo : "No",
  34. bExit : "Cancel",
  35. msg: {
  36. required:"Field is required",
  37. number:"Please, enter valid number",
  38. minValue:"value must be greater than or equal to ",
  39. maxValue:"value must be less than or equal to",
  40. email: "is not a valid e-mail",
  41. integer: "Please, enter valid integer value",
  42. date: "Please, enter valid date value",
  43. url: "is not a valid URL. Prefix required ('http://' or 'https://')",
  44. nodefined : " is not defined!",
  45. novalue : " return value is required!",
  46. customarray : "Custom function should return array!",
  47. customfcheck : "Custom function should be present in case of custom checking!"
  48. }
  49. },
  50. view : {
  51. caption: "View Record",
  52. bClose: "Close"
  53. },
  54. del : {
  55. caption: "Delete",
  56. msg: "Delete selected record(s)?",
  57. bSubmit: "Delete",
  58. bCancel: "Cancel"
  59. },
  60. nav : {
  61. edittext: "",
  62. edittitle: "Edit selected row",
  63. addtext:"",
  64. addtitle: "Add new row",
  65. deltext: "",
  66. deltitle: "Delete selected row",
  67. searchtext: "",
  68. searchtitle: "Find records",
  69. refreshtext: "",
  70. refreshtitle: "Reload Grid",
  71. alertcap: "Warning",
  72. alerttext: "Please, select row",
  73. viewtext: "",
  74. viewtitle: "View selected row"
  75. },
  76. col : {
  77. caption: "Select columns",
  78. bSubmit: "Ok",
  79. bCancel: "Cancel"
  80. },
  81. errors : {
  82. errcap : "Error",
  83. nourl : "No url is set",
  84. norecords: "No records to process",
  85. model : "Length of colNames <> colModel!"
  86. },
  87. formatter : {
  88. integer : {thousandsSeparator: ",", defaultValue: '0'},
  89. number : {decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, defaultValue: '0.00'},
  90. currency : {decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'},
  91. date : {
  92. dayNames: [
  93. "Sun", "Mon", "Tue", "Wed", "Thr", "Fri", "Sat",
  94. "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
  95. ],
  96. monthNames: [
  97. "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
  98. "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
  99. ],
  100. AmPm : ["am","pm","AM","PM"],
  101. S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th';},
  102. srcformat: 'Y-m-d',
  103. newformat: 'n/j/Y',
  104. parseRe : /[Tt\\\/:_;.,\t\s-]/,
  105. masks : {
  106. // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
  107. // and see http://docs.jquery.com/UI/Datepicker/formatDate
  108. // and https://github.com/jquery/globalize#dates for alternative formats used frequently
  109. // one can find on https://github.com/jquery/globalize/tree/master/lib/cultures many
  110. // information about date, time, numbers and currency formats used in different countries
  111. // one should just convert the information in PHP format
  112. ISO8601Long:"Y-m-d H:i:s",
  113. ISO8601Short:"Y-m-d",
  114. // short date:
  115. // n - Numeric representation of a month, without leading zeros
  116. // j - Day of the month without leading zeros
  117. // Y - A full numeric representation of a year, 4 digits
  118. // example: 3/1/2012 which means 1 March 2012
  119. ShortDate: "n/j/Y", // in jQuery UI Datepicker: "M/d/yyyy"
  120. // long date:
  121. // l - A full textual representation of the day of the week
  122. // F - A full textual representation of a month
  123. // d - Day of the month, 2 digits with leading zeros
  124. // Y - A full numeric representation of a year, 4 digits
  125. LongDate: "l, F d, Y", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy"
  126. // long date with long time:
  127. // l - A full textual representation of the day of the week
  128. // F - A full textual representation of a month
  129. // d - Day of the month, 2 digits with leading zeros
  130. // Y - A full numeric representation of a year, 4 digits
  131. // g - 12-hour format of an hour without leading zeros
  132. // i - Minutes with leading zeros
  133. // s - Seconds, with leading zeros
  134. // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
  135. FullDateTime: "l, F d, Y g:i:s A", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy h:mm:ss tt"
  136. // month day:
  137. // F - A full textual representation of a month
  138. // d - Day of the month, 2 digits with leading zeros
  139. MonthDay: "F d", // in jQuery UI Datepicker: "MMMM dd"
  140. // short time (without seconds)
  141. // g - 12-hour format of an hour without leading zeros
  142. // i - Minutes with leading zeros
  143. // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
  144. ShortTime: "g:i A", // in jQuery UI Datepicker: "h:mm tt"
  145. // long time (with seconds)
  146. // g - 12-hour format of an hour without leading zeros
  147. // i - Minutes with leading zeros
  148. // s - Seconds, with leading zeros
  149. // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
  150. LongTime: "g:i:s A", // in jQuery UI Datepicker: "h:mm:ss tt"
  151. SortableDateTime: "Y-m-d\\TH:i:s",
  152. UniversalSortableDateTime: "Y-m-d H:i:sO",
  153. // month with year
  154. // Y - A full numeric representation of a year, 4 digits
  155. // F - A full textual representation of a month
  156. YearMonth: "F, Y" // in jQuery UI Datepicker: "MMMM, yyyy"
  157. },
  158. reformatAfterEdit : false
  159. },
  160. baseLinkUrl: '',
  161. showAction: '',
  162. target: '',
  163. checkbox : {disabled:true},
  164. idName : 'id'
  165. }
  166. });
  167. })(jQuery);