Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add translation for Urdu language #1860

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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 <abdullahmzm@gmail.com> */
/* 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;

}));