mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Fixed 3536. Added Persian localisation
This commit is contained in:
parent
16c61e43f4
commit
eb68aadf3f
@ -31,6 +31,7 @@
|
||||
<script type="text/javascript" src="../../ui/i18n/ui.datepicker-de.js"></script>
|
||||
<script type="text/javascript" src="../../ui/i18n/ui.datepicker-eo.js"></script>
|
||||
<script type="text/javascript" src="../../ui/i18n/ui.datepicker-es.js"></script>
|
||||
<script type="text/javascript" src="../../ui/i18n/ui.datepicker-fa.js"></script>
|
||||
<script type="text/javascript" src="../../ui/i18n/ui.datepicker-fi.js"></script>
|
||||
<script type="text/javascript" src="../../ui/i18n/ui.datepicker-fr.js"></script>
|
||||
<script type="text/javascript" src="../../ui/i18n/ui.datepicker-he.js"></script>
|
||||
|
@ -395,6 +395,7 @@ function customRange(input) {
|
||||
|
||||
options: [
|
||||
{ desc: '‫العربية (Arabic)', source: '$("#i18nrtl").datepicker($.extend({}, $.datepicker.regional["ar"], {showStatus: true, showOn: "both", buttonImage: "templates/images/calendar.gif", buttonImageOnly: true}));$("#contrib2").html("Khaled Al Horani");' },
|
||||
{ desc: '‫فارسی (Farsi/Persian)', source: '$("#i18nrtl").datepicker($.extend({}, $.datepicker.regional["fa"], {showStatus: true, showOn: "both", buttonImage: "templates/images/calendar.gif", buttonImageOnly: true}));$("#contrib2").html("Javad Mowlanezhad");' },
|
||||
{ desc: '‫עברית (Hebrew)', source: '$("#i18nrtl").datepicker($.extend({}, $.datepicker.regional["he"], {showStatus: true, showOn: "both", buttonImage: "templates/images/calendar.gif", buttonImageOnly: true}));$("#contrib2").html("Amir Hardon");' }
|
||||
]
|
||||
},
|
||||
|
25
ui/i18n/ui.datepicker-fa.js
Normal file
25
ui/i18n/ui.datepicker-fa.js
Normal file
@ -0,0 +1,25 @@
|
||||
/* Persian (Farsi) Translation for the jQuery UI date picker plugin. */
|
||||
/* Javad Mowlanezhad -- jmowla@gmail.com */
|
||||
/* Jalali calendar should supported soon! (Its implemented but I have to test it) */
|
||||
jQuery(function($) {
|
||||
$.datepicker.regional['fa'] = {
|
||||
clearText: 'حذف تاريخ', clearStatus: 'پاک کردن تاريخ جاري',
|
||||
closeText: 'بستن', closeStatus: 'بستن بدون اعمال تغييرات',
|
||||
prevText: '<قبلي', prevStatus: 'نمايش ماه قبل',
|
||||
prevBigText: '<<', prevBigStatus: '',
|
||||
nextText: 'بعدي>', nextStatus: 'نمايش ماه بعد',
|
||||
nextBigText: '>>', nextBigStatus: '',
|
||||
currentText: 'امروز', currentStatus: 'نمايش ماه جاري',
|
||||
monthNames: ['فروردين','ارديبهشت','خرداد','تير','مرداد','شهريور',
|
||||
'مهر','آبان','آذر','دي','بهمن','اسفند'],
|
||||
monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'],
|
||||
monthStatus: 'نمايش ماه متفاوت', yearStatus: 'نمايش سال متفاوت',
|
||||
weekHeader: 'هف', weekStatus: 'هفتهِ سال',
|
||||
dayNames: ['يکشنبه','دوشنبه','سهشنبه','چهارشنبه','پنجشنبه','جمعه','شنبه'],
|
||||
dayNamesShort: ['ي','د','س','چ','پ','ج', 'ش'],
|
||||
dayNamesMin: ['ي','د','س','چ','پ','ج', 'ش'],
|
||||
dayStatus: 'قبول DD بعنوان اولين روز هفته', dateStatus: 'انتخاب D, M d',
|
||||
dateFormat: 'yy/mm/dd', firstDay: 6,
|
||||
initStatus: 'انتخاب تاريخ', isRTL: true};
|
||||
$.datepicker.setDefaults($.datepicker.regional['fa']);
|
||||
});
|
Loading…
Reference in New Issue
Block a user