1 | ;(function($){
|
---|
2 | /**
|
---|
3 | * jqGrid Vietnamese Translation
|
---|
4 | * Lê Äình DÅ©ng dungtdc@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: "View {0} - {1} of {2}",
|
---|
14 | emptyrecords: "KhÃŽng có dữ liá»u",
|
---|
15 | loadtext: "Äang nạp dữ liá»u...",
|
---|
16 | pgtext : "Trang {0} trong tá»ng sá» {1}"
|
---|
17 | },
|
---|
18 | search : {
|
---|
19 | caption: "Tìm kiếm...",
|
---|
20 | Find: "Tìm",
|
---|
21 | Reset: "Khá»i tạo lại",
|
---|
22 | odata: [{ oper:'eq', text:"bằng"},{ oper:'ne', text:"khÃŽng bằng"},{ oper:'lt', text:"bé hÆ¡n"},{ oper:'le', text:"bé hÆ¡n hoặc bằng"},{ oper:'gt', text:"lá»n hÆ¡n"},{ oper:'ge', text:"lá»n hÆ¡n hoặc bằng"},{ oper:'bw', text:"bắt Äầu vá»i"},{ oper:'bn', text:"khÃŽng bắt Äầu vá»i"},{ oper:'in', text:"trong"},{ oper:'ni', text:"khÃŽng nằm trong"},{ oper:'ew', text:"kết thúc vá»i"},{ oper:'en', text:"khÃŽng kết thúc vá»i"},{ oper:'cn', text:"chứa"},{ oper:'nc', text:"khÃŽng chứa"}],
|
---|
23 | groupOps: [ { op: "VÃ", text: "tất cả" }, { op: "HOẶC", text: "bất kỳ" } ]
|
---|
24 | },
|
---|
25 | edit : {
|
---|
26 | addCaption: "Thêm bản ghi",
|
---|
27 | editCaption: "Sá»a bản ghi",
|
---|
28 | bSubmit: "Gá»i",
|
---|
29 | bCancel: "Há»§y bá»",
|
---|
30 | bClose: "Äóng",
|
---|
31 | saveData: "Dữ liá»u Äã thay Äá»i! Có lưu thay Äá»i khÃŽng?",
|
---|
32 | bYes : "Có",
|
---|
33 | bNo : "KhÃŽng",
|
---|
34 | bExit : "Há»§y bá»",
|
---|
35 | msg: {
|
---|
36 | required:"Trưá»ng dữ liá»u bắt buá»c có",
|
---|
37 | number:"Hãy Äiá»n Äúng sá»",
|
---|
38 | minValue:"giá trá» phải lá»n hÆ¡n hoặc bằng vá»i ",
|
---|
39 | maxValue:"giá trỠphải bé hơn hoặc bằng",
|
---|
40 | email: "khÃŽng phải là má»t email Äúng",
|
---|
41 | integer: "Hãy Äiá»n Äúng sá» nguyên",
|
---|
42 | date: "Hãy Äiá»n Äúng ngà y tháng",
|
---|
43 | url: "khÃŽng phải là URL. Khá»i Äầu bắt buá»c là ('http://' hoặc 'https://')",
|
---|
44 | nodefined : " chưa ÄÆ°á»£c Äá»nh nghÄ©a!",
|
---|
45 | novalue : " giá trá» trả vá» bắt buá»c phải có!",
|
---|
46 | customarray : "Hà m nên trả vá» má»t mảng!",
|
---|
47 | customfcheck : "Custom function should be present in case of custom checking!"
|
---|
48 |
|
---|
49 | }
|
---|
50 | },
|
---|
51 | view : {
|
---|
52 | caption: "Xem bản ghi",
|
---|
53 | bClose: "Äóng"
|
---|
54 | },
|
---|
55 | del : {
|
---|
56 | caption: "Xóa",
|
---|
57 | msg: "Xóa bản ghi Äã chá»n?",
|
---|
58 | bSubmit: "Xóa",
|
---|
59 | bCancel: "Há»§y bá»"
|
---|
60 | },
|
---|
61 | nav : {
|
---|
62 | edittext: "",
|
---|
63 | edittitle: "Sá»a dòng Äã chá»n",
|
---|
64 | addtext:"",
|
---|
65 | addtitle: "Thêm má»i 1 dòng",
|
---|
66 | deltext: "",
|
---|
67 | deltitle: "Xóa dòng Äã chá»n",
|
---|
68 | searchtext: "",
|
---|
69 | searchtitle: "Tìm bản ghi",
|
---|
70 | refreshtext: "",
|
---|
71 | refreshtitle: "Nạp lại lưá»i",
|
---|
72 | alertcap: "Cảnh báo",
|
---|
73 | alerttext: "Hãy chá»n má»t dòng",
|
---|
74 | viewtext: "",
|
---|
75 | viewtitle: "Xem dòng Äã chá»n"
|
---|
76 | },
|
---|
77 | col : {
|
---|
78 | caption: "Chá»n cá»t",
|
---|
79 | bSubmit: "OK",
|
---|
80 | bCancel: "Há»§y bá»"
|
---|
81 | },
|
---|
82 | errors : {
|
---|
83 | errcap : "Lá»i",
|
---|
84 | nourl : "khÃŽng url ÄÆ°á»£c Äặt",
|
---|
85 | norecords: "KhÃŽng có bản ghi Äá» xá» lÜ",
|
---|
86 | model : "Chiá»u dà i cá»§a colNames <> colModel!"
|
---|
87 | },
|
---|
88 | formatter : {
|
---|
89 | integer : {thousandsSeparator: ".", defaultValue: '0'},
|
---|
90 | number : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, defaultValue: '0'},
|
---|
91 | currency : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0'},
|
---|
92 | date : {
|
---|
93 | dayNames: [
|
---|
94 | "CN", "T2", "T3", "T4", "T5", "T6", "T7",
|
---|
95 | "Chá»§ nháºt", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ nÄm", "Thứ sáu", "Thứ bảy"
|
---|
96 | ],
|
---|
97 | monthNames: [
|
---|
98 | "Th1", "Th2", "Th3", "Th4", "Th5", "Th6", "Th7", "Th8", "Th9", "Th10", "Th11", "Th12",
|
---|
99 | "Tháng má»t", "Tháng hai", "Tháng ba", "Tháng tư", "Tháng nÄm", "Tháng sáu", "Tháng bảy", "Tháng tám", "Tháng chÃn", "Tháng mưá»i", "Tháng mưá»i má»t", "Tháng mưá»i hai"
|
---|
100 | ],
|
---|
101 | AmPm : ["sáng","chiá»u","SÃNG","CHIá»U"],
|
---|
102 | S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th';},
|
---|
103 | srcformat: 'Y-m-d',
|
---|
104 | newformat: 'n/j/Y',
|
---|
105 | parseRe : /[Tt\\\/:_;.,\t\s-]/,
|
---|
106 | masks : {
|
---|
107 | // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
|
---|
108 | // and see http://docs.jquery.com/UI/Datepicker/formatDate
|
---|
109 | // and https://github.com/jquery/globalize#dates for alternative formats used frequently
|
---|
110 | // one can find on https://github.com/jquery/globalize/tree/master/lib/cultures many
|
---|
111 | // information about date, time, numbers and currency formats used in different countries
|
---|
112 | // one should just convert the information in PHP format
|
---|
113 | ISO8601Long:"Y-m-d H:i:s",
|
---|
114 | ISO8601Short:"Y-m-d",
|
---|
115 | // short date:
|
---|
116 | // n - Numeric representation of a month, without leading zeros
|
---|
117 | // j - Day of the month without leading zeros
|
---|
118 | // Y - A full numeric representation of a year, 4 digits
|
---|
119 | // example: 3/1/2012 which means 1 March 2012
|
---|
120 | ShortDate: "n/j/Y", // in jQuery UI Datepicker: "M/d/yyyy"
|
---|
121 | // long date:
|
---|
122 | // l - A full textual representation of the day of the week
|
---|
123 | // F - A full textual representation of a month
|
---|
124 | // d - Day of the month, 2 digits with leading zeros
|
---|
125 | // Y - A full numeric representation of a year, 4 digits
|
---|
126 | LongDate: "l, F d, Y", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy"
|
---|
127 | // long date with long time:
|
---|
128 | // l - A full textual representation of the day of the week
|
---|
129 | // F - A full textual representation of a month
|
---|
130 | // d - Day of the month, 2 digits with leading zeros
|
---|
131 | // Y - A full numeric representation of a year, 4 digits
|
---|
132 | // g - 12-hour format of an hour without leading zeros
|
---|
133 | // i - Minutes with leading zeros
|
---|
134 | // s - Seconds, with leading zeros
|
---|
135 | // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
|
---|
136 | FullDateTime: "l, F d, Y g:i:s A", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy h:mm:ss tt"
|
---|
137 | // month day:
|
---|
138 | // F - A full textual representation of a month
|
---|
139 | // d - Day of the month, 2 digits with leading zeros
|
---|
140 | MonthDay: "F d", // in jQuery UI Datepicker: "MMMM dd"
|
---|
141 | // short time (without seconds)
|
---|
142 | // g - 12-hour format of an hour without leading zeros
|
---|
143 | // i - Minutes with leading zeros
|
---|
144 | // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
|
---|
145 | ShortTime: "g:i A", // in jQuery UI Datepicker: "h:mm tt"
|
---|
146 | // long time (with seconds)
|
---|
147 | // g - 12-hour format of an hour without leading zeros
|
---|
148 | // i - Minutes with leading zeros
|
---|
149 | // s - Seconds, with leading zeros
|
---|
150 | // A - Uppercase Ante meridiem and Post meridiem (AM or PM)
|
---|
151 | LongTime: "g:i:s A", // in jQuery UI Datepicker: "h:mm:ss tt"
|
---|
152 | SortableDateTime: "Y-m-d\\TH:i:s",
|
---|
153 | UniversalSortableDateTime: "Y-m-d H:i:sO",
|
---|
154 | // month with year
|
---|
155 | // Y - A full numeric representation of a year, 4 digits
|
---|
156 | // F - A full textual representation of a month
|
---|
157 | YearMonth: "F, Y" // in jQuery UI Datepicker: "MMMM, yyyy"
|
---|
158 | },
|
---|
159 | reformatAfterEdit : false
|
---|
160 | },
|
---|
161 | baseLinkUrl: '',
|
---|
162 | showAction: '',
|
---|
163 | target: '',
|
---|
164 | checkbox : {disabled:true},
|
---|
165 | idName : 'id'
|
---|
166 | }
|
---|
167 | });
|
---|
168 | })(jQuery);
|
---|