Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions ui/i18n/datepicker-ur.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/* Abdullah initialisation for the jQuery UI date picker plugin. */
/* For Pakistani Users Only */
/* Written by Abdullah <[email protected]> */
/* 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: "&#x3C;پچھلا",
nextText: "اگلا&#x3E;",
currentText: "آج",
monthNames: ["جنوری", "فروری", "مارچ", "اپریل", "مئی", "جون",
"جولائی", "اگست", "ستمبر", "اکتوبر", "نومبر", "دسمبر"],
monthNamesShort: ["1", "2", "3", "4", "5", "6",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No short names in Urdu?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there are no short names for months in Urdu.

"7", "8", "9", "10", "11", "12"],
dayNames: [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change to one line here to be consistent with all other files.

"اتوار",
"سوموار",
"منگل",
"بدھ",
"جمعرات",
"جمعہ",
"ہفتہ"
],
dayNamesShort: ["اتوار", "سوموار", "منگل", "بدھ", "جمعرات", "جمعہ", "ہفتہ"],
dayNamesMin: ["اتوار", "سوموار", "منگل", "بدھ", "جمعرات", "جمعہ", "ہفتہ"],
weekHeader: "ایک ہفتہ",
dateFormat: "dd/mm/yy",
firstDay: 0,
isRTL: true,
showMonthAfterYear: false,
yearSuffix: ""};
datepicker.setDefaults(datepicker.regional.ur);

return datepicker.regional.ur;

}));