grid.locale-en.js 6.6 KB

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