diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-01-31 10:31:27 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-01-31 10:31:27 -0500 |
commit | 85dfcdf766cba709213c81ca2b8432b797aa45c1 (patch) | |
tree | 5af11abc346e9e8edab8712ccc02c7dbed66449d /demos/datepicker/jquery.ui.datepicker-ar.js | |
parent | d36d116d360bbe54b7700b95185a6eb2069ed637 (diff) | |
download | jquery-ui-85dfcdf766cba709213c81ca2b8432b797aa45c1.tar.gz jquery-ui-85dfcdf766cba709213c81ca2b8432b797aa45c1.zip |
Datepicker demo: Simplify localization demo so that jqueryui.com works properly.
Diffstat (limited to 'demos/datepicker/jquery.ui.datepicker-ar.js')
-rw-r--r-- | demos/datepicker/jquery.ui.datepicker-ar.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/demos/datepicker/jquery.ui.datepicker-ar.js b/demos/datepicker/jquery.ui.datepicker-ar.js new file mode 100644 index 000000000..cef0f08fd --- /dev/null +++ b/demos/datepicker/jquery.ui.datepicker-ar.js @@ -0,0 +1,23 @@ +/* Arabic Translation for jQuery UI date picker plugin. */ +/* Khaled Alhourani -- me@khaledalhourani.com */ +/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */ +jQuery(function($){ + $.datepicker.regional['ar'] = { + 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: 6, + isRTL: true, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['ar']); +}); |