1 | ;(function($){
|
---|
2 | /**
|
---|
3 | * jqGrid Thai Translation
|
---|
4 | * Kittituch Manakul m.kittituch@Gmail.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: "à¹àžªàžàž {0} - {1} àžàž²àž {2}",
|
---|
14 | emptyrecords: "à¹àž¡à¹àžàžàžà¹àžàž¡àž¹àž¥",
|
---|
15 | loadtext: "àžàž³àž¥àž±àžàž£à¹àžàžàžàžàžà¹àžàž¡àž¹àž¥...",
|
---|
16 | pgtext : "àž«àžà¹àž² {0} àžàž²àž {1}"
|
---|
17 | },
|
---|
18 | search : {
|
---|
19 | caption: "àžàž³àž¥àž±àžàžà¹àžàž«àž²...",
|
---|
20 | Find: "àžà¹àžàž«àž²",
|
---|
21 | Reset: "àžàž·àžàžà¹àž²àžàž¥àž±àž",
|
---|
22 | odata: [{ oper:'eq', text:"à¹àžà¹àž²àžàž±àž"},{ oper:'ne', text:"à¹àž¡à¹à¹àžà¹àž²àžàž±àž"},{ oper:'lt', text:"àžà¹àžàž¢àžàž§à¹àž²"},{ oper:'le', text:"à¹àž¡à¹àž¡àž²àžàžàž§à¹àž²"},{ oper:'gt', text:"àž¡àž²àžàžàžàž§à¹àž²"},{ oper:'ge', text:"à¹àž¡à¹àžà¹àžàž¢àžàž§à¹àž²"},{ oper:'bw', text:"àžàž¶à¹àžàžà¹àžàžà¹àž§àž¢"},{ oper:'bn', text:"à¹àž¡à¹àžàž¶à¹àžàžà¹àžàžà¹àž§àž¢"},{ oper:'in', text:"àž¡àžµàžàž³à¹àžàžàž³àž«àžàž¶à¹àžà¹àž"},{ oper:'ni', text:"à¹àž¡à¹àž¡àžµàžàž³à¹àžàžàž³àž«àžàž¶à¹àžà¹àž"},{ oper:'ew', text:"àž¥àžàžà¹àž²àž¢àžà¹àž§àž¢"},{ oper:'en', text:"à¹àž¡à¹àž¥àžàžà¹àž²àž¢àžà¹àž§àž¢"},{ oper:'cn', text:"àž¡àžµàžàž³àž§à¹àž²"},{ oper:'nc', text:"à¹àž¡à¹àž¡àžµàžàž³àž§à¹àž²"}],
|
---|
23 | groupOps: [ { op: "à¹àž¥àž°", text: "àžàž±à¹àžàž«àž¡àž" }, { op: "àž«àž£àž·àž", text: "à¹àžà¹" } ]
|
---|
24 | },
|
---|
25 | edit : {
|
---|
26 | addCaption: "à¹àžàžŽà¹àž¡àžà¹àžàž¡àž¹àž¥",
|
---|
27 | editCaption: "à¹àžà¹à¹àžàžà¹àžàž¡àž¹àž¥",
|
---|
28 | bSubmit: "àžàž±àžàžàž¶àž",
|
---|
29 | bCancel: "àž¢àžà¹àž¥àžŽàž",
|
---|
30 | bClose: "àžàžŽàž",
|
---|
31 | saveData: "àžàžžàžàžà¹àžàžàžàž²àž£àžàž±àžàžàž¶àžàž²àž£à¹àžà¹à¹àž à¹àžà¹àž«àž£àž·àžà¹àž¡à¹?",
|
---|
32 | bYes : "àžàž±àžàžàž¶àž",
|
---|
33 | bNo : "àž¥àž°àžàžŽà¹àžàžàž²àž£à¹àžà¹à¹àž",
|
---|
34 | bExit : "àž¢àžà¹àž¥àžŽàž",
|
---|
35 | msg: {
|
---|
36 | required:"àžà¹àžàž¡àž¹àž¥àžàžµà¹àžàž³à¹àžà¹àž",
|
---|
37 | number:"àžàž£àžžàžàž²àžàž£àžàžàž«àž¡àž²àž¢à¹àž¥àžà¹àž«à¹àžàž¹àžàžà¹àžàž",
|
---|
38 | minValue:"àžà¹àž²àžàžàžàžà¹àžàž¡àž¹àž¥àžàžµà¹àžà¹àžàžà¹àž¡à¹àžà¹àžàž¢àžàž§à¹àž²",
|
---|
39 | maxValue:"àžà¹àž²àžàžàžàžà¹àžàž¡àž¹àž¥àžàžµà¹àžà¹àžàžà¹àž¡à¹àž¡àž²àžàžàž§à¹àž²",
|
---|
40 | email: "àžàžµà¹àž¡àž¥àž¥à¹àžàžµà¹à¹àž¡à¹àžàž¹àžàžà¹àžàž",
|
---|
41 | integer: "àžàž£àžžàžàž²àžàž£àžàžà¹àžà¹àžàžàž³àžàž§àžà¹àžà¹àž¡",
|
---|
42 | date: "àžàž£àžžàžàž²àžàž£àžàžàž§àž±àžàžàžµà¹à¹àž«à¹àžàž¹àžàžà¹àžàž",
|
---|
43 | url: "URL à¹àž¡à¹àžàž¹àžàžà¹àžàž URL àžàž³à¹àžà¹àžàžà¹àžàžàžàž¶à¹àžàžà¹àžàžà¹àž§àž¢ 'http://' àž«àž£àž·àž 'https://'",
|
---|
44 | nodefined : "à¹àž¡à¹à¹àžà¹àžàž¹àžàžàž³àž«àžàžàžà¹àž²!",
|
---|
45 | novalue : "àžà¹àžàžàžàž²àž£àžàž²àž£àžàž·àžàžà¹àž²!",
|
---|
46 | customarray : "àžàž±àžàžà¹àžàž±àžàžàžµà¹àžªàž£à¹àž²àžàžàž¶à¹àžàžà¹àžàžàžªà¹àžàžà¹àž²àžàž¥àž±àžà¹àžà¹àžà¹àžàžà¹àžà¹àž£àž¢à¹",
|
---|
47 | customfcheck : "àž£àž°àžàžàžà¹àžàžàžàž²àž£àžàž±àžàžà¹àžàž±àžàžàžµà¹àžªàž£à¹àž²àžàžàž¶à¹àžàžªàž³àž«àž£àž±àžàžàž²àž£àžàž£àž§àžàžªàžàž!"
|
---|
48 |
|
---|
49 | }
|
---|
50 | },
|
---|
51 | view : {
|
---|
52 | caption: "à¹àž£àžµàž¢àžàžàž¹àžà¹àžàž¡àž¹àž¥",
|
---|
53 | bClose: "àžàžŽàž"
|
---|
54 | },
|
---|
55 | del : {
|
---|
56 | caption: "àž¥àžàžà¹àžàž¡àž¹àž¥",
|
---|
57 | msg: "àžàžžàžàžà¹àžàžàžàž²àž£àž¥àžàžà¹àžàž¡àž¹àž¥àžàžµà¹àžàž¹àžà¹àž¥àž·àžàž à¹àžà¹àž«àž£àž·àžà¹àž¡à¹?",
|
---|
58 | bSubmit: "àžà¹àžàžàžàž²àž£àž¥àž",
|
---|
59 | bCancel: "àž¢àžà¹àž¥àžŽàž"
|
---|
60 | },
|
---|
61 | nav : {
|
---|
62 | edittext: "",
|
---|
63 | edittitle: "à¹àžà¹à¹àžàžà¹àžàž¡àž¹àž¥",
|
---|
64 | addtext:"",
|
---|
65 | addtitle: "à¹àžàžŽà¹àž¡àžà¹àžàž¡àž¹àž¥",
|
---|
66 | deltext: "",
|
---|
67 | deltitle: "àž¥àžàžà¹àžàž¡àž¹àž¥",
|
---|
68 | searchtext: "",
|
---|
69 | searchtitle: "àžà¹àžàž«àž²àžà¹àžàž¡àž¹àž¥",
|
---|
70 | refreshtext: "",
|
---|
71 | refreshtitle: "àž£àžµà¹àžàž£àž",
|
---|
72 | alertcap: "àžàž³à¹àžàž·àžàž",
|
---|
73 | alerttext: "àžàž£àžžàžàž²à¹àž¥àž·àžàžàžà¹àžàž¡àž¹àž¥",
|
---|
74 | viewtext: "",
|
---|
75 | viewtitle: "àžàž¹àž£àž²àž¢àž¥àž°à¹àžàžµàž¢àžàžà¹àžàž¡àž¹àž¥"
|
---|
76 | },
|
---|
77 | col : {
|
---|
78 | caption: "àžàž£àžžàžàž²à¹àž¥àž·àžàžàžàžàž¥àž±àž¡àžà¹",
|
---|
79 | bSubmit: "àžàžàž¥àž",
|
---|
80 | bCancel: "àž¢àžà¹àž¥àžŽàž"
|
---|
81 | },
|
---|
82 | errors : {
|
---|
83 | errcap : "à¹àžàžŽàžàžàž§àž²àž¡àžàžŽàžàžàž¥àž²àž",
|
---|
84 | nourl : "à¹àž¡à¹à¹àžà¹àžàž³àž«àžàž URL",
|
---|
85 | norecords: "à¹àž¡à¹àž¡àžµàžà¹àžàž¡àž¹àž¥à¹àž«à¹àžàž³à¹àžàžŽàžàžàž²àž£",
|
---|
86 | model : "àžàž³àžàž§àžàžàžàž¥àž±àž¡àžà¹à¹àž¡à¹à¹àžà¹àž²àžàž±àžàžàž³àžàž§àžàžàžàž¥àž±àž¡àžà¹à¹àž¡à¹àžàž¥!"
|
---|
87 | },
|
---|
88 | formatter : {
|
---|
89 | integer : {thousandsSeparator: " ", defaultValue: '0'},
|
---|
90 | number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'},
|
---|
91 | currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0.00'},
|
---|
92 | date : {
|
---|
93 | dayNames: [
|
---|
94 | "àžàž²", "àž", "àž", "àž", "àžàž€", "àžš", "àžª",
|
---|
95 | "àžàž²àžàžŽàžàž¢à¹", "àžàž±àžàžàž£à¹", "àžàž±àžàžàž²àž£", "àžàžžàž", "àžàž€àž«àž±àžªàžàžàžµ", "àžšàž¹àžàž£à¹", "à¹àžªàž²àž£à¹"
|
---|
96 | ],
|
---|
97 | monthNames: [
|
---|
98 | "àž¡.àž.", "àž.àž.", "àž¡àžµ.àž.", "à¹àž¡.àž¢.", "àž.àž.", "àž¡àžŽ.àž¢.", "àž.àž.", "àžª.àž.", "àž.àž¢.", "àž.àž.", "àž.àž¢.", "àž.àž.",
|
---|
99 | "àž¡àžàž£àž²àžàž¡", "àžàžžàž¡àž àž²àžàž±àžàžà¹", "àž¡àžµàžàž²àžàž¡", "à¹àž¡àž©àž²àž¢àž", "àžàž€àž©àž àž²àžàž¡", "àž¡àžŽàžàžžàžàž²àž¢àž", "àžàž£àžàžàž²àžàž¡", "àžªàžŽàžàž«àž²àžàž¡", "àžàž±àžàž¢àž²àž¢àž", "àžàžžàž¥àž²àžàž¡", "àžàž€àžšàžàžŽàžàž²àž¢àž", "àžàž±àžàž§àž²àžàž¡"
|
---|
100 | ],
|
---|
101 | AmPm : ["am","pm","AM","PM"],
|
---|
102 | S: function (j) {return ''},
|
---|
103 | srcformat: 'Y-m-d',
|
---|
104 | newformat: 'd/m/Y',
|
---|
105 | parseRe : /[Tt\\\/:_;.,\t\s-]/,
|
---|
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);
|
---|