|
| 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 : ['equal', 'not equal', 'less', 'less or equal','greater','greater or equal', 'begins with','does not begin with','is in','is not in','ends with','does not end with','contains','does not contain'], |
| 23 | + groupOps: [ { op: "AND", text: "all" }, { op: "OR", text: "any" } ], |
| 24 | + matchText: " match", |
| 25 | + rulesText: " rules" |
| 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 | + }, |
| 53 | + view : { |
| 54 | + caption: "View Record", |
| 55 | + bClose: "Close" |
| 56 | + }, |
| 57 | + del : { |
| 58 | + caption: "Delete", |
| 59 | + msg: "Delete selected record(s)?", |
| 60 | + bSubmit: "Delete", |
| 61 | + bCancel: "Cancel" |
| 62 | + }, |
| 63 | + nav : { |
| 64 | + edittext: "", |
| 65 | + edittitle: "Edit selected row", |
| 66 | + addtext:"", |
| 67 | + addtitle: "Add new row", |
| 68 | + deltext: "", |
| 69 | + deltitle: "Delete selected row", |
| 70 | + searchtext: "", |
| 71 | + searchtitle: "Find records", |
| 72 | + refreshtext: "", |
| 73 | + refreshtitle: "Reload Grid", |
| 74 | + alertcap: "Warning", |
| 75 | + alerttext: "Please, select row", |
| 76 | + viewtext: "", |
| 77 | + viewtitle: "View selected row" |
| 78 | + }, |
| 79 | + col : { |
| 80 | + caption: "Select columns", |
| 81 | + bSubmit: "Ok", |
| 82 | + bCancel: "Cancel" |
| 83 | + }, |
| 84 | + errors : { |
| 85 | + errcap : "Error", |
| 86 | + nourl : "No url is set", |
| 87 | + norecords: "No records to process", |
| 88 | + model : "Length of colNames <> colModel!" |
| 89 | + }, |
| 90 | + formatter : { |
| 91 | + integer : {thousandsSeparator: ",", defaultValue: '0'}, |
| 92 | + number : {decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, defaultValue: '0.00'}, |
| 93 | + currency : {decimalSeparator:".", thousandsSeparator: ",", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'}, |
| 94 | + date : { |
| 95 | + dayNames: [ |
| 96 | + "Sun", "Mon", "Tue", "Wed", "Thr", "Fri", "Sat", |
| 97 | + "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" |
| 98 | + ], |
| 99 | + monthNames: [ |
| 100 | + "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", |
| 101 | + "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" |
| 102 | + ], |
| 103 | + AmPm : ["am","pm","AM","PM"], |
| 104 | + S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th';}, |
| 105 | + srcformat: 'Y-m-d', |
| 106 | + newformat: 'n/j/Y', |
| 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); |
0 commit comments