datepicker-ms.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Malaysian initialisation for the jQuery UI date picker plugin. */
  2. /* Written by Mohd Nawawi Mohamad Jamili (nawawi@ronggeng.net). */
  3. (function( factory ) {
  4. if ( typeof define === "function" && define.amd ) {
  5. // AMD. Register as an anonymous module.
  6. define([ "../datepicker" ], factory );
  7. } else {
  8. // Browser globals
  9. factory( jQuery.datepicker );
  10. }
  11. }(function( datepicker ) {
  12. datepicker.regional['ms'] = {
  13. closeText: 'Tutup',
  14. prevText: '<Sebelum',
  15. nextText: 'Selepas>',
  16. currentText: 'hari ini',
  17. monthNames: ['Januari','Februari','Mac','April','Mei','Jun',
  18. 'Julai','Ogos','September','Oktober','November','Disember'],
  19. monthNamesShort: ['Jan','Feb','Mac','Apr','Mei','Jun',
  20. 'Jul','Ogo','Sep','Okt','Nov','Dis'],
  21. dayNames: ['Ahad','Isnin','Selasa','Rabu','Khamis','Jumaat','Sabtu'],
  22. dayNamesShort: ['Aha','Isn','Sel','Rab','kha','Jum','Sab'],
  23. dayNamesMin: ['Ah','Is','Se','Ra','Kh','Ju','Sa'],
  24. weekHeader: 'Mg',
  25. dateFormat: 'dd/mm/yy',
  26. firstDay: 0,
  27. isRTL: false,
  28. showMonthAfterYear: false,
  29. yearSuffix: ''};
  30. datepicker.setDefaults(datepicker.regional['ms']);
  31. return datepicker.regional['ms'];
  32. }));