]> 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)
committerkborchers <k_borchers@yahoo.com>
Thu, 17 Nov 2011 18:34:33 +0000 (12:34 -0600)
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 97de3913259ec9433cb569bbd1d8aaac60773c97..2e80b7dee0372fb5a4f6dcd83eb6c0c8ba1359f6 100644 (file)
@@ -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 (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