Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Datepicker i18n: Added Australian and New Zealand localizations. Fixe…
…s #6828 - Datepicker: Add en-AU or en-NZ initialisations. Thanks Campbell
- Loading branch information
1 parent
83fca58
commit b3145fb5bcfe6e8f283cb92cb368d094568e02ff
Showing
4 changed files
with
50 additions
and
0 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
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
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
@@ -0,0 +1,23 @@ | ||
/* English/Australia initialisation for the jQuery UI date picker plugin. */ | ||
/* Based on the en-GB initialisation. */ | ||
jQuery(function($){ | ||
$.datepicker.regional['en-AU'] = { | ||
closeText: 'Done', | ||
prevText: 'Prev', | ||
nextText: 'Next', | ||
currentText: 'Today', | ||
monthNames: ['January','February','March','April','May','June', | ||
'July','August','September','October','November','December'], | ||
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', | ||
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], | ||
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], | ||
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], | ||
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], | ||
weekHeader: 'Wk', | ||
dateFormat: 'dd/mm/yy', | ||
firstDay: 1, | ||
isRTL: false, | ||
showMonthAfterYear: false, | ||
yearSuffix: ''}; | ||
$.datepicker.setDefaults($.datepicker.regional['en-AU']); | ||
}); |
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
@@ -0,0 +1,23 @@ | ||
/* English/New Zealand initialisation for the jQuery UI date picker plugin. */ | ||
/* Based on the en-GB initialisation. */ | ||
jQuery(function($){ | ||
$.datepicker.regional['en-NZ'] = { | ||
closeText: 'Done', | ||
prevText: 'Prev', | ||
nextText: 'Next', | ||
currentText: 'Today', | ||
monthNames: ['January','February','March','April','May','June', | ||
'July','August','September','October','November','December'], | ||
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', | ||
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], | ||
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], | ||
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], | ||
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], | ||
weekHeader: 'Wk', | ||
dateFormat: 'dd/mm/yy', | ||
firstDay: 1, | ||
isRTL: false, | ||
showMonthAfterYear: false, | ||
yearSuffix: ''}; | ||
$.datepicker.setDefaults($.datepicker.regional['en-NZ']); | ||
}); |