From a03863d01761a6ea69af7dc053a0d9c2bdf063a3 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 (cherry picked from commit
6525365944d306931e0697b7bb909e9e48a5501c)
---
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 734addbdb..4046c4ee0 100644
--- a/demos/index.html
+++ b/demos/index.html
@@ -45,6 +45,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