Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Datepicker demo: Simplify localization demo so that jqueryui.com work…
…s properly.
- Loading branch information
1 parent
d36d116
commit 85dfcdf
Showing
5 changed files
with
98 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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']); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* French initialisation for the jQuery UI date picker plugin. */ | ||
/* Written by Keith Wood (kbwood{at}iinet.com.au), | ||
Stéphane Nahmani (sholby@sholby.net), | ||
Stéphane Raimbault <stephane.raimbault@gmail.com> */ | ||
jQuery(function($){ | ||
$.datepicker.regional['fr'] = { | ||
closeText: 'Fermer', | ||
prevText: 'Précédent', | ||
nextText: 'Suivant', | ||
currentText: 'Aujourd\'hui', | ||
monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', | ||
'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], | ||
monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin', | ||
'Juil.','Août','Sept.','Oct.','Nov.','Déc.'], | ||
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], | ||
dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'], | ||
dayNamesMin: ['D','L','M','M','J','V','S'], | ||
weekHeader: 'Sem.', | ||
dateFormat: 'dd/mm/yy', | ||
firstDay: 1, | ||
isRTL: false, | ||
showMonthAfterYear: false, | ||
yearSuffix: ''}; | ||
$.datepicker.setDefaults($.datepicker.regional['fr']); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* Hebrew initialisation for the UI Datepicker extension. */ | ||
/* Written by Amir Hardon (ahardon at gmail dot com). */ | ||
jQuery(function($){ | ||
$.datepicker.regional['he'] = { | ||
closeText: 'סגור', | ||
prevText: '<הקודם', | ||
nextText: 'הבא>', | ||
currentText: 'היום', | ||
monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני', | ||
'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'], | ||
monthNamesShort: ['ינו','פבר','מרץ','אפר','מאי','יוני', | ||
'יולי','אוג','ספט','אוק','נוב','דצמ'], | ||
dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'], | ||
dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], | ||
dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], | ||
weekHeader: 'Wk', | ||
dateFormat: 'dd/mm/yy', | ||
firstDay: 0, | ||
isRTL: true, | ||
showMonthAfterYear: false, | ||
yearSuffix: ''}; | ||
$.datepicker.setDefaults($.datepicker.regional['he']); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* Chinese initialisation for the jQuery UI date picker plugin. */ | ||
/* Written by Ressol (ressol@gmail.com). */ | ||
jQuery(function($){ | ||
$.datepicker.regional['zh-TW'] = { | ||
closeText: '關閉', | ||
prevText: '<上月', | ||
nextText: '下月>', | ||
currentText: '今天', | ||
monthNames: ['一月','二月','三月','四月','五月','六月', | ||
'七月','八月','九月','十月','十一月','十二月'], | ||
monthNamesShort: ['一月','二月','三月','四月','五月','六月', | ||
'七月','八月','九月','十月','十一月','十二月'], | ||
dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], | ||
dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], | ||
dayNamesMin: ['日','一','二','三','四','五','六'], | ||
weekHeader: '周', | ||
dateFormat: 'yy/mm/dd', | ||
firstDay: 1, | ||
isRTL: false, | ||
showMonthAfterYear: true, | ||
yearSuffix: '年'}; | ||
$.datepicker.setDefaults($.datepicker.regional['zh-TW']); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters