Skip to content

Commit

Permalink
Datepicker: Added Welsh/UK localization. Fixes #7892 Datepicker: Add …
Browse files Browse the repository at this point in the history
…Welsh/UK Localization

(cherry picked from commit 6525365)
  • Loading branch information
wgriffiths authored and scottgonzalez committed Nov 19, 2011
1 parent a8b75a5 commit a03863d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions demos/datepicker/localization.html
Expand Up @@ -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>
Expand Down Expand Up @@ -150,6 +151,7 @@
<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 -->
Expand Down
1 change: 1 addition & 0 deletions demos/index.html
Expand Up @@ -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>
Expand Down
23 changes: 23 additions & 0 deletions 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']);
});

0 comments on commit a03863d

Please sign in to comment.