26 lines
1.3 KiB
JavaScript
26 lines
1.3 KiB
JavaScript
/* http://keith-wood.name/calendars.html
|
|
Thai localisation for Gregorian/Julian calendars for jQuery.
|
|
Written by pipo (pipo@sixhead.com). */
|
|
(function($) {
|
|
'use strict';
|
|
$.calendars.calendars.gregorian.prototype.regionalOptions.th = {
|
|
name: 'Gregorian',
|
|
epochs: ['BCE', 'CE'],
|
|
monthNames: ['มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน',
|
|
'กรกฎาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม'],
|
|
monthNamesShort: ['ม.ค.','ก.พ.','มี.ค.','เม.ย.','พ.ค.','มิ.ย.',
|
|
'ก.ค.','ส.ค.','ก.ย.','ต.ค.','พ.ย.','ธ.ค.'],
|
|
dayNames: ['อาทิตย์','จันทร์','อังคาร','พุธ','พฤหัสบดี','ศุกร์','เสาร์'],
|
|
dayNamesShort: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'],
|
|
dayNamesMin: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'],
|
|
digits: null,
|
|
dateFormat: 'dd/mm/yyyy',
|
|
firstDay: 0,
|
|
isRTL: false
|
|
};
|
|
if ($.calendars.calendars.julian) {
|
|
$.calendars.calendars.julian.prototype.regionalOptions.th =
|
|
$.calendars.calendars.gregorian.prototype.regionalOptions.th;
|
|
}
|
|
})(jQuery);
|