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 = {
|
---|
11 | defaults : {
|
---|
12 | recordtext: "View {0} - {1} of {2}",
|
---|
13 | emptyrecords: "No records to view",
|
---|
14 | loadtext: "Loading...",
|
---|
15 | pgtext : "Page {0} of {1}"
|
---|
16 | },
|
---|
17 | search : {
|
---|
18 | caption: "Search...",
|
---|
19 | Find: "Find",
|
---|
20 | Reset: "Reset",
|
---|
21 | 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'],
|
---|
22 | groupOps: [ { op: "AND", text: "all" }, { op: "OR", text: "any" } ],
|
---|
23 | matchText: " match",
|
---|
24 | rulesText: " rules"
|
---|
25 | },
|
---|
26 | edit : {
|
---|
27 | addCaption: "Add Record",
|
---|
28 | editCaption: "Edit Record",
|
---|
29 | bSubmit: "Submit",
|
---|
30 | bCancel: "Cancel",
|
---|
31 | bClose: "Close",
|
---|
32 | saveData: "Data has been changed! Save changes?",
|
---|
33 | bYes : "Yes",
|
---|
34 | bNo : "No",
|
---|
35 | bExit : "Cancel",
|
---|
36 | msg: {
|
---|
37 | required:"Field is required",
|
---|
38 | number:"Please, enter valid number",
|
---|
39 | minValue:"value must be greater than or equal to ",
|
---|
40 | maxValue:"value must be less than or equal to",
|
---|
41 | email: "is not a valid e-mail",
|
---|
42 | integer: "Please, enter valid integer value",
|
---|
43 | date: "Please, enter valid date value",
|
---|
44 | url: "is not a valid URL. Prefix required ('http://' or 'https://')",
|
---|
45 | nodefined : " is not defined!",
|
---|
46 | novalue : " return value is required!",
|
---|
47 | customarray : "Custom function should return array!",
|
---|
48 | customfcheck : "Custom function should be present in case of custom checking!"
|
---|
49 |
|
---|
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: 'd/m/Y',
|
---|
106 | masks : {
|
---|
107 | ISO8601Long:"Y-m-d H:i:s",
|
---|
108 | ISO8601Short:"Y-m-d",
|
---|
109 | ShortDate: "n/j/Y",
|
---|
110 | LongDate: "l, F d, Y",
|
---|
111 | FullDateTime: "l, F d, Y g:i:s A",
|
---|
112 | MonthDay: "F d",
|
---|
113 | ShortTime: "g:i A",
|
---|
114 | LongTime: "g:i:s A",
|
---|
115 | SortableDateTime: "Y-m-d\\TH:i:s",
|
---|
116 | UniversalSortableDateTime: "Y-m-d H:i:sO",
|
---|
117 | YearMonth: "F, Y"
|
---|
118 | },
|
---|
119 | reformatAfterEdit : false
|
---|
120 | },
|
---|
121 | baseLinkUrl: '',
|
---|
122 | showAction: '',
|
---|
123 | target: '',
|
---|
124 | checkbox : {disabled:true},
|
---|
125 | idName : 'id'
|
---|
126 | }
|
---|
127 | };
|
---|
128 | })(jQuery);
|
---|