From 8794b58b1cbcd7de333e5c0e7f18a6fe6f332bb0 Mon Sep 17 00:00:00 2001 From: "NEXTBRIDGE\\abdullah" Date: Tue, 24 Apr 2018 21:29:39 +0500 Subject: [PATCH] Add Localization for Urdu - datepicker-ur.js --- ui/i18n/datepicker-ur.js | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 ui/i18n/datepicker-ur.js diff --git a/ui/i18n/datepicker-ur.js b/ui/i18n/datepicker-ur.js new file mode 100644 index 000000000..d14226076 --- /dev/null +++ b/ui/i18n/datepicker-ur.js @@ -0,0 +1,47 @@ +/* Abdullah initialisation for the jQuery UI date picker plugin. */ +/* For Pakistani Users Only */ +/* Written by Abdullah */ +/* Twitter Handle @Software_abi */ +(function (factory) { + if (typeof define === "function" && define.amd) { + + // AMD. Register as an anonymous module. + define(["../widgets/datepicker"], factory); + } else { + + // Browser globals + factory(jQuery.datepicker); + } +}(function (datepicker) { + + datepicker.regional.ur = { + closeText: "??? ????", + prevText: "<?????", + nextText: "????>", + currentText: "??", + monthNames: ["?????", "?????", "????", "?????", "???", "???", + "??????", "????", "?????", "??????", "?????", "?????"], + monthNamesShort: ["1", "2", "3", "4", "5", "6", + "7", "8", "9", "10", "11", "12"], + dayNames: [ + "?????", + "??????", + "????", + "???", + "??????", + "????", + "????" + ], + dayNamesShort: ["?????", "??????", "????", "???", "??????", "????", "????"], + dayNamesMin: ["?????", "??????", "????", "???", "??????", "????", "????"], + weekHeader: "????", + dateFormat: "dd/mm/yy", + firstDay: 0, + isRTL: true, + showMonthAfterYear: false, + yearSuffix: ""}; + datepicker.setDefaults(datepicker.regional.ur); + + return datepicker.regional.ur; + +}));