Skip to content
Permalink
Browse files

Datepicker: Added Afrikaans and English/UK localisations

  • Loading branch information
Keith Wood
Keith Wood committed Oct 22, 2009
1 parent cef5e6f commit b0f59eebdbf638cd863d5f181069e44d9a54e511
@@ -6,6 +6,7 @@
<script type="text/javascript" src="../../jquery-1.3.2.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../ui/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-af.js"></script>
<script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-ar.js"></script>
<script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-az.js"></script>
<script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-bg.js"></script>
@@ -14,6 +15,7 @@
<script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-da.js"></script>
<script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-de.js"></script>
<script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-el.js"></script>
<script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-en-GB.js"></script>
<script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-eo.js"></script>
<script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-es.js"></script>
<script type="text/javascript" src="../../ui/i18n/jquery.ui.datepicker-et.js"></script>
@@ -69,6 +71,7 @@

<p>Date: <input type="text" id="datepicker"/>&nbsp;
<select id="locale">
<option value="af">Afrikaans</option>
<option value="sq">Albanian (Gjuha shqipe)</option>
<option value="ar">Arabic (&#8235;(&#1604;&#1593;&#1585;&#1576;&#1610;</option>
<option value="hy">Armenian (&#1344;&#1377;&#1397;&#1381;&#1408;&#1381;&#1398;)</option>
@@ -82,6 +85,7 @@
<option value="cs">Czech (Ce&ouml;tina)</option>
<option value="da">Danish (Dansk)</option>
<option value="nl">Dutch (Nederlands)</option>
<option value="en-GB">English/UK</option>
<option value="eo">Esperanto</option>
<option value="et">Estonian (eesti keel)</option>
<option value="fa">Farsi/Persian (&#8235;(&#1601;&#1575;&#1585;&#1587;&#1740;</option>
@@ -33,6 +33,7 @@
<script type="text/javascript" src="../ui/jquery.effects.shake.js"></script>
<script type="text/javascript" src="../ui/jquery.effects.slide.js"></script>
<script type="text/javascript" src="../ui/jquery.effects.transfer.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-af.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-ar.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-az.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-bg.js"></script>
@@ -41,6 +42,7 @@
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-da.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-de.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-el.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-en-GB.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-eo.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-es.js"></script>
<script type="text/javascript" src="../ui/i18n/jquery.ui.datepicker-et.js"></script>
@@ -0,0 +1,23 @@
/* Afrikaans initialisation for the jQuery UI date picker plugin. */
/* Written by Renier Pretorius. */
jQuery(function($){
$.datepicker.regional['af'] = {
closeText: 'Selekteer',
prevText: 'Vorige',
nextText: 'Volgende',
currentText: 'Vandag',
monthNames: ['Januarie','Februarie','Maart','April','Mei','Junie',
'Julie','Augustus','September','Oktober','November','Desember'],
monthNamesShort: ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun',
'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],
dayNames: ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'],
dayNamesShort: ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'],
dayNamesMin: ['So','Ma','Di','Wo','Do','Vr','Sa'],
weekHeader: 'Wk',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['af']);
});
@@ -0,0 +1,23 @@
/* English/UK initialisation for the jQuery UI date picker plugin. */
/* Written by Stuart. */
jQuery(function($){
$.datepicker.regional['en-GB'] = {
closeText: 'Clear',
prevText: 'Prev',
nextText: 'Next',
currentText: 'Today',
monthNames: ['January','February','March','April','May','June',
'July','August','September','October','November','December'],
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
weekHeader: 'Wk',
dateFormat: 'dd/mm/yy',
firstDay: 1,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''};
$.datepicker.setDefaults($.datepicker.regional['en-GB']);
});

0 comments on commit b0f59ee

Please sign in to comment.
You can’t perform that action at this time.