From 6525365944d306931e0697b7bb909e9e48a5501c Mon Sep 17 00:00:00 2001
From: William Griffiths
Date: Thu, 17 Nov 2011 12:34:33 -0600
Subject: [PATCH] Datepicker: Added Welsh/UK localization. Fixes #7892
Datepicker: Add Welsh/UK Localization
---
demos/datepicker/localization.html | 2 ++
demos/index.html | 1 +
ui/i18n/jquery.ui.datepicker-cy-GB.js | 23 +++++++++++++++++++++++
3 files changed, 26 insertions(+)
create mode 100644 ui/i18n/jquery.ui.datepicker-cy-GB.js
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 @@
+
@@ -150,6 +151,7 @@
+
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 @@
+
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
--
2.39.5