diff options
-rw-r--r-- | demos/datepicker/localization.html | 2 | ||||
-rw-r--r-- | demos/index.html | 1 | ||||
-rw-r--r-- | ui/i18n/jquery.ui.datepicker-cy-GB.js | 23 |
3 files changed, 26 insertions, 0 deletions
diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html index 36cf4cfa7..626cf7e21 100644 --- a/demos/datepicker/localization.html +++ b/demos/datepicker/localization.html @@ -16,6 +16,7 @@ <script src="../../ui/i18n/jquery.ui.datepicker-bs.js"></script> <script src="../../ui/i18n/jquery.ui.datepicker-ca.js"></script> <script src="../../ui/i18n/jquery.ui.datepicker-cs.js"></script> + <script src="../../ui/i18n/jquery.ui.datepicker-cy-GB.js"></script> <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> @@ -150,6 +151,7 @@ <option value="tr">Turkish (Türkçe)</option> <option value="uk">Ukranian (Українська)</option> <option value="vi">Vietnamese (Tiếng Việt)</option> + <option value="cy-GB">Welsh/UK (Cymraeg)</option> </select></p> </div><!-- End demo --> diff --git a/demos/index.html b/demos/index.html index 97de39132..2e80b7dee 100644 --- a/demos/index.html +++ b/demos/index.html @@ -52,6 +52,7 @@ <script src="../ui/i18n/jquery.ui.datepicker-bg.js"></script> <script src="../ui/i18n/jquery.ui.datepicker-ca.js"></script> <script src="../ui/i18n/jquery.ui.datepicker-cs.js"></script> + <script src="../ui/i18n/jquery.ui.datepicker-cy-GB.js"></script> <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> diff --git a/ui/i18n/jquery.ui.datepicker-cy-GB.js b/ui/i18n/jquery.ui.datepicker-cy-GB.js new file mode 100644 index 000000000..dfee2f9d4 --- /dev/null +++ b/ui/i18n/jquery.ui.datepicker-cy-GB.js @@ -0,0 +1,23 @@ +/* Welsh/UK initialisation for the jQuery UI date picker plugin. */ +/* Written by William Griffiths. */ +jQuery(function($){ + $.datepicker.regional['cy-GB'] = { + closeText: 'Done', + prevText: 'Prev', + nextText: 'Next', + currentText: 'Today', + monthNames: ['Ionawr','Chwefror','Mawrth','Ebrill','Mai','Mehefin', + 'Gorffennaf','Awst','Medi','Hydref','Tachwedd','Rhagfyr'], + monthNamesShort: ['Ion', 'Chw', 'Maw', 'Ebr', 'Mai', 'Meh', + 'Gor', 'Aws', 'Med', 'Hyd', 'Tac', 'Rha'], + dayNames: ['Dydd Sul', 'Dydd Llun', 'Dydd Mawrth', 'Dydd Mercher', 'Dydd Iau', 'Dydd Gwener', 'Dydd Sadwrn'], + dayNamesShort: ['Sul', 'Llu', 'Maw', 'Mer', 'Iau', 'Gwe', 'Sad'], + dayNamesMin: ['Su','Ll','Ma','Me','Ia','Gw','Sa'], + weekHeader: 'Wy', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['cy-GB']); +});
\ No newline at end of file |