1 /* Thai initialisation for the jQuery UI date picker plugin. */
2 /* Written by pipo (pipo@sixhead.com). */
3 ( function( factory ) {
4 if ( typeof define === "function" && define.amd ) {
6 // AMD. Register as an anonymous module.
7 define( [ "../widgets/datepicker" ], factory );
11 factory( jQuery.datepicker );
13 }( function( datepicker ) {
15 datepicker.regional.th = {
17 prevText: "« ย้อน",
18 nextText: "ถัดไป »",
19 currentText: "วันนี้",
20 monthNames: [ "มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน",
21 "กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม" ],
22 monthNamesShort: [ "ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.",
23 "ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค." ],
24 dayNames: [ "อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์" ],
25 dayNamesShort: [ "อา.","จ.","อ.","พ.","พฤ.","ศ.","ส." ],
26 dayNamesMin: [ "อา.","จ.","อ.","พ.","พฤ.","ศ.","ส." ],
28 dateFormat: "dd/mm/yy",
31 showMonthAfterYear: false,
33 datepicker.setDefaults( datepicker.regional.th );
35 return datepicker.regional.th;