]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Added Welsh/UK localization. Fixes #7892 Datepicker: Add Welsh/UK Localiz...
authorWilliam Griffiths <william@ycymro.com>
Thu, 17 Nov 2011 18:34:33 +0000 (12:34 -0600)
committerScott González <scott.gonzalez@gmail.com>
Sat, 19 Nov 2011 15:25:21 +0000 (09:25 -0600)
(cherry picked from commit 6525365944d306931e0697b7bb909e9e48a5501c)

demos/datepicker/localization.html
demos/index.html
ui/i18n/jquery.ui.datepicker-cy-GB.js [new file with mode: 0644]

index 36cf4cfa713096ea52b6f643565c98e35b27d186..626cf7e21d3b26f77983ef8de63621ec1b97a088 100644 (file)
@@ -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>
                <option value="tr">Turkish (T&uuml;rk&ccedil;e)</option>
                <option value="uk">Ukranian (&#1059;&#1082;&#1088;&#1072;&#1111;&#1085;&#1089;&#1100;&#1082;&#1072;)</option>
                <option value="vi">Vietnamese (Ti&#7871;ng Vi&#7879;t)</option>
+               <option value="cy-GB">Welsh/UK (Cymraeg)</option>
        </select></p>
 
 </div><!-- End demo -->
index 734addbdb5fe2c1192b3615851a78fac762503c7..4046c4ee07f7265bc04b7d3ce824d229e9f97b5c 100644 (file)
@@ -45,6 +45,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 (file)
index 0000000..dfee2f9
--- /dev/null
@@ -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