Skip to content

Commit

Permalink
Fixed 3536. Added Persian localisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith Wood committed Nov 7, 2008
1 parent 16c61e4 commit eb68aad
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions demos/functional/index.html
Expand Up @@ -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-de.js"></script>
<script type="text/javascript" src="../../ui/i18n/ui.datepicker-eo.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-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-fi.js"></script>
<script type="text/javascript" src="../../ui/i18n/ui.datepicker-fr.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> <script type="text/javascript" src="../../ui/i18n/ui.datepicker-he.js"></script>
Expand Down
1 change: 1 addition & 0 deletions demos/functional/templates/ui.datepicker.html
Expand Up @@ -395,6 +395,7 @@


options: [ options: [
{ desc: '&#8235;&#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577; (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: '&#8235;&#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577; (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: '&#8235;&#1601;&#1575;&#1585;&#1587;&#1740; (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: '&#8235;&#1506;&#1489;&#1512;&#1497;&#1514; (Hebrew)', source: '$("#i18nrtl").datepicker($.extend({}, $.datepicker.regional["he"], {showStatus: true, showOn: "both", buttonImage: "templates/images/calendar.gif", buttonImageOnly: true}));$("#contrib2").html("Amir Hardon");' } { desc: '&#8235;&#1506;&#1489;&#1512;&#1497;&#1514; (Hebrew)', source: '$("#i18nrtl").datepicker($.extend({}, $.datepicker.regional["he"], {showStatus: true, showOn: "both", buttonImage: "templates/images/calendar.gif", buttonImageOnly: true}));$("#contrib2").html("Amir Hardon");' }
] ]
}, },
Expand Down
25 changes: 25 additions & 0 deletions ui/i18n/ui.datepicker-fa.js
@@ -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: '&#x3c;قبلي', prevStatus: 'نمايش ماه قبل',
prevBigText: '&#x3c;&#x3c;', prevBigStatus: '',
nextText: 'بعدي&#x3e;', nextStatus: 'نمايش ماه بعد',
nextBigText: '&#x3e;&#x3e;', 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']);
});

0 comments on commit eb68aad

Please sign in to comment.