Administrator
2023-04-21 195945efc5db921a4c9eb8cf9421c172273293f5
提交 | 用户 | 时间
58d006 1 /**
A 2  * jqGrid Vietnamese Translation
3  * Lê Đình Dũng dungtdc@gmail.com
4  * http://trirand.com/blog/ 
5  * Dual licensed under the MIT and GPL licenses:
6  * http://www.opensource.org/licenses/mit-license.php
7  * http://www.gnu.org/licenses/gpl.html
8 **/
9 /*global jQuery, define */
10 (function( factory ) {
11     "use strict";
12     if ( typeof define === "function" && define.amd ) {
13         // AMD. Register as an anonymous module.
14         define([
15             "jquery",
16             "../grid.base"
17         ], factory );
18     } else {
19         // Browser globals
20         factory( jQuery );
21     }
22 }(function( $ ) {
23
24 $.jgrid = $.jgrid || {};
25 if(!$.jgrid.hasOwnProperty("regional")) {
26     $.jgrid.regional = [];
27 }
28 $.jgrid.regional["vi"] = {
29     defaults : {
30         recordtext: "View {0} - {1} of {2}",
31         emptyrecords: "Không có dữ liệu",
32         loadtext: "Đang nạp dữ liệu...",
33         pgtext : "Trang {0} trong tổng số {1}",
34         savetext: "Saving...",
35         pgfirst : "First Page",
36         pglast : "Last Page",
37         pgnext : "Next Page",
38         pgprev : "Previous Page",
39         pgrecs : "Records per Page",
40         showhide: "Toggle Expand Collapse Grid",
41         // mobile
42         pagerCaption : "Grid::Page Settings",
43         pageText : "Page:",
44         recordPage : "Records per Page",
45         nomorerecs : "No more records...",
46         scrollPullup: "Pull up to load more...",
47         scrollPulldown : "Pull down to refresh...",
48         scrollRefresh : "Release to refresh..."
49     },
50     search : {
51         caption: "Tìm kiếm...",
52         Find: "Tìm",
53         Reset: "Khởi tạo lại",
54         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"},{ oper:'nu', text:'is null'},{ oper:'nn', text:'is not null'}],
55         groupOps: [    { op: "VÀ", text: "tất cả" },    { op: "HOẶC",  text: "bất kỳ" }    ],
56         operandTitle : "Click to select search operation.",
57         resetTitle : "Reset Search Value"
58     },
59     edit : {
60         addCaption: "Thêm bản ghi",
61         editCaption: "Sửa bản ghi",
62         bSubmit: "Gửi",
63         bCancel: "Hủy bỏ",
64         bClose: "Đóng",
65         saveData: "Dữ liệu đã thay đổi! Có lưu thay đổi không?",
66         bYes : "Có",
67         bNo : "Không",
68         bExit : "Hủy bỏ",
69         msg: {
70             required:"Trường dữ liệu bắt buộc có",
71             number:"Hãy điền đúng số",
72             minValue:"giá trị phải lớn hơn hoặc bằng với ",
73             maxValue:"giá trị phải bé hơn hoặc bằng",
74             email: "không phải là một email đúng",
75             integer: "Hãy điền đúng số nguyên",
76             date: "Hãy điền đúng ngày tháng",
77             url: "không phải là URL. Khởi đầu bắt buộc là ('http://' hoặc 'https://')",
78             nodefined : " chưa được định nghĩa!",
79             novalue : " giá trị trả về bắt buộc phải có!",
80             customarray : "Hàm nên trả về một mảng!",
81             customfcheck : "Custom function should be present in case of custom checking!"
82             
83         }
84     },
85     view : {
86         caption: "Xem bản ghi",
87         bClose: "Đóng"
88     },
89     del : {
90         caption: "Xóa",
91         msg: "Xóa bản ghi đã chọn?",
92         bSubmit: "Xóa",
93         bCancel: "Hủy bỏ"
94     },
95     nav : {
96         edittext: "",
97         edittitle: "Sửa dòng đã chọn",
98         addtext:"",
99         addtitle: "Thêm mới 1 dòng",
100         deltext: "",
101         deltitle: "Xóa dòng đã chọn",
102         searchtext: "",
103         searchtitle: "Tìm bản ghi",
104         refreshtext: "",
105         refreshtitle: "Nạp lại lưới",
106         alertcap: "Cảnh báo",
107         alerttext: "Hãy chọn một dòng",
108         viewtext: "",
109         viewtitle: "Xem dòng đã chọn",
110         savetext: "",
111         savetitle: "Save row",
112         canceltext: "",
113         canceltitle : "Cancel row editing",
114         selectcaption : "Actions..."
115     },
116     col : {
117         caption: "Chọn cột",
118         bSubmit: "OK",
119         bCancel: "Hủy bỏ"
120     },
121     errors : {
122         errcap : "Lỗi",
123         nourl : "không url được đặt",
124         norecords: "Không có bản ghi để xử lý",
125         model : "Chiều dài của colNames <> colModel!"
126     },
127     formatter : {
128         integer : {thousandsSeparator: ".", defaultValue: '0'},
129         number : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, defaultValue: '0'},
130         currency : {decimalSeparator:",", thousandsSeparator: ".", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0'},
131         date : {
132             dayNames:   [
133                 "CN", "T2", "T3", "T4", "T5", "T6", "T7",
134                 "Chủ nhật", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy"
135             ],
136             monthNames: [
137                 "Th1", "Th2", "Th3", "Th4", "Th5", "Th6", "Th7", "Th8", "Th9", "Th10", "Th11", "Th12",
138                 "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"
139             ],
140             AmPm : ["sáng","chiều","SÁNG","CHIỀU"],
141             S: function (j) {return j < 11 || j > 13 ? ['st', 'nd', 'rd', 'th'][Math.min((j - 1) % 10, 3)] : 'th';},
142             srcformat: 'Y-m-d',
143             newformat: 'n/j/Y',
144             parseRe : /[#%\\\/:_;.,\t\s-]/,
145             masks : {
146                 // see http://php.net/manual/en/function.date.php for PHP format used in jqGrid
147                 // and see http://docs.jquery.com/UI/Datepicker/formatDate
148                 // and https://github.com/jquery/globalize#dates for alternative formats used frequently
149                 // one can find on https://github.com/jquery/globalize/tree/master/lib/cultures many
150                 // information about date, time, numbers and currency formats used in different countries
151                 // one should just convert the information in PHP format
152                 ISO8601Long:"Y-m-d H:i:s",
153                 ISO8601Short:"Y-m-d",
154                 // short date:
155                 //    n - Numeric representation of a month, without leading zeros
156                 //    j - Day of the month without leading zeros
157                 //    Y - A full numeric representation of a year, 4 digits
158                 // example: 3/1/2012 which means 1 March 2012
159                 ShortDate: "n/j/Y", // in jQuery UI Datepicker: "M/d/yyyy"
160                 // long date:
161                 //    l - A full textual representation of the day of the week
162                 //    F - A full textual representation of a month
163                 //    d - Day of the month, 2 digits with leading zeros
164                 //    Y - A full numeric representation of a year, 4 digits
165                 LongDate: "l, F d, Y", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy"
166                 // long date with long time:
167                 //    l - A full textual representation of the day of the week
168                 //    F - A full textual representation of a month
169                 //    d - Day of the month, 2 digits with leading zeros
170                 //    Y - A full numeric representation of a year, 4 digits
171                 //    g - 12-hour format of an hour without leading zeros
172                 //    i - Minutes with leading zeros
173                 //    s - Seconds, with leading zeros
174                 //    A - Uppercase Ante meridiem and Post meridiem (AM or PM)
175                 FullDateTime: "l, F d, Y g:i:s A", // in jQuery UI Datepicker: "dddd, MMMM dd, yyyy h:mm:ss tt"
176                 // month day:
177                 //    F - A full textual representation of a month
178                 //    d - Day of the month, 2 digits with leading zeros
179                 MonthDay: "F d", // in jQuery UI Datepicker: "MMMM dd"
180                 // short time (without seconds)
181                 //    g - 12-hour format of an hour without leading zeros
182                 //    i - Minutes with leading zeros
183                 //    A - Uppercase Ante meridiem and Post meridiem (AM or PM)
184                 ShortTime: "g:i A", // in jQuery UI Datepicker: "h:mm tt"
185                 // long time (with seconds)
186                 //    g - 12-hour format of an hour without leading zeros
187                 //    i - Minutes with leading zeros
188                 //    s - Seconds, with leading zeros
189                 //    A - Uppercase Ante meridiem and Post meridiem (AM or PM)
190                 LongTime: "g:i:s A", // in jQuery UI Datepicker: "h:mm:ss tt"
191                 SortableDateTime: "Y-m-d\\TH:i:s",
192                 UniversalSortableDateTime: "Y-m-d H:i:sO",
193                 // month with year
194                 //    Y - A full numeric representation of a year, 4 digits
195                 //    F - A full textual representation of a month
196                 YearMonth: "F, Y" // in jQuery UI Datepicker: "MMMM, yyyy"
197             },
198             reformatAfterEdit : false,
199             userLocalTime : false
200         },
201         baseLinkUrl: '',
202         showAction: '',
203         target: '',
204         checkbox : {disabled:true},
205         idName : 'id'
206     }
207 };
208 }));