aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-01-17 09:26:30 -0500
committerScott González <scott.gonzalez@gmail.com>2011-01-17 09:26:30 -0500
commita4d2a0fa192befd99f15d2ee80668ece89c1ef5f (patch)
tree2fad727694d2c90de46d29b6965a37927e0cbb2d
parent6e0482a9cbf9a6bba73d5e03ef6f6c8b21e71c0d (diff)
downloadjquery-ui-a4d2a0fa192befd99f15d2ee80668ece89c1ef5f.tar.gz
jquery-ui-a4d2a0fa192befd99f15d2ee80668ece89c1ef5f.zip
Datepicker i18n: Added Australian and New Zealand localizations. Fixes #6828 - Datepicker: Add en-AU or en-NZ initialisations.
Thanks Campbell
-rw-r--r--demos/datepicker/localization.html2
-rw-r--r--demos/index.html2
-rw-r--r--ui/i18n/jquery.ui.datepicker-en-AU.js23
-rw-r--r--ui/i18n/jquery.ui.datepicker-en-NZ.js23
4 files changed, 50 insertions, 0 deletions
diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html
index 9d32a4863..da9d010d2 100644
--- a/demos/datepicker/localization.html
+++ b/demos/datepicker/localization.html
@@ -18,7 +18,9 @@
<script src="../../ui/i18n/jquery.ui.datepicker-da.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-de.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-el.js"></script>
+ <script src="../../ui/i18n/jquery.ui.datepicker-en-AU.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-en-GB.js"></script>
+ <script src="../../ui/i18n/jquery.ui.datepicker-en-NZ.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-eo.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-es.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-et.js"></script>
diff --git a/demos/index.html b/demos/index.html
index c249ef1be..2cc4fea1a 100644
--- a/demos/index.html
+++ b/demos/index.html
@@ -52,7 +52,9 @@
<script src="../ui/i18n/jquery.ui.datepicker-da.js"></script>
<script src="../ui/i18n/jquery.ui.datepicker-de.js"></script>
<script src="../ui/i18n/jquery.ui.datepicker-el.js"></script>
+ <script src="../ui/i18n/jquery.ui.datepicker-en-AU.js"></script>
<script src="../ui/i18n/jquery.ui.datepicker-en-GB.js"></script>
+ <script src="../ui/i18n/jquery.ui.datepicker-en-NZ.js"></script>
<script src="../ui/i18n/jquery.ui.datepicker-eo.js"></script>
<script src="../ui/i18n/jquery.ui.datepicker-es.js"></script>
<script src="../ui/i18n/jquery.ui.datepicker-et.js"></script>
diff --git a/ui/i18n/jquery.ui.datepicker-en-AU.js b/ui/i18n/jquery.ui.datepicker-en-AU.js
new file mode 100644
index 000000000..c1a1020a1
--- /dev/null
+++ b/ui/i18n/jquery.ui.datepicker-en-AU.js
@@ -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']);
+});
diff --git a/ui/i18n/jquery.ui.datepicker-en-NZ.js b/ui/i18n/jquery.ui.datepicker-en-NZ.js
new file mode 100644
index 000000000..7819df052
--- /dev/null
+++ b/ui/i18n/jquery.ui.datepicker-en-NZ.js
@@ -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']);
+});