jquery.ui.datepicker.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* Persian (Farsi) Translation for the jQuery UI date picker plugin. */
  2. /* Javad Mowlanezhad -- jmowla@gmail.com */
  3. /* Jalali calendar should supported soon! (Its implemented but I have to test it) */
  4. ( function( factory ) {
  5. "use strict";
  6. if ( typeof define === "function" && define.amd ) {
  7. // AMD. Register as an anonymous module.
  8. define( [ "../widgets/datepicker" ], factory );
  9. } else {
  10. // Browser globals
  11. factory( jQuery.datepicker );
  12. }
  13. } )( function( datepicker ) {
  14. "use strict";
  15. datepicker.regional.fa = {
  16. closeText: "بستن",
  17. prevText: "قبلی",
  18. nextText: "بعدی",
  19. currentText: "امروز",
  20. monthNames: [
  21. "ژانویه",
  22. "فوریه",
  23. "مارس",
  24. "آوریل",
  25. "مه",
  26. "ژوئن",
  27. "ژوئیه",
  28. "اوت",
  29. "سپتامبر",
  30. "اکتبر",
  31. "نوامبر",
  32. "دسامبر"
  33. ],
  34. monthNamesShort: [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ],
  35. dayNames: [
  36. "يکشنبه",
  37. "دوشنبه",
  38. "سه‌شنبه",
  39. "چهارشنبه",
  40. "پنجشنبه",
  41. "جمعه",
  42. "شنبه"
  43. ],
  44. dayNamesShort: [
  45. "ی",
  46. "د",
  47. "س",
  48. "چ",
  49. "پ",
  50. "ج",
  51. "ش"
  52. ],
  53. dayNamesMin: [
  54. "ی",
  55. "د",
  56. "س",
  57. "چ",
  58. "پ",
  59. "ج",
  60. "ش"
  61. ],
  62. weekHeader: "هف",
  63. dateFormat: "yy/mm/dd",
  64. firstDay: 6,
  65. isRTL: true,
  66. showMonthAfterYear: false,
  67. yearSuffix: "" };
  68. datepicker.setDefaults( datepicker.regional.fa );
  69. return datepicker.regional.fa;
  70. } );