]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Added Afrikaans and English/UK localisations
authorKeith Wood <kbwood.au@gmail.com>
Thu, 22 Oct 2009 09:49:19 +0000 (09:49 +0000)
committerKeith Wood <kbwood.au@gmail.com>
Thu, 22 Oct 2009 09:49:19 +0000 (09:49 +0000)
demos/datepicker/localization.html
demos/index.html
ui/i18n/jquery.ui.datepicker-af.js [new file with mode: 0644]
ui/i18n/jquery.ui.datepicker-en-GB.js [new file with mode: 0644]

index 1e87c6ac092aa25593186a6a61c58286afb30480..13688400d94d1746db07d391acbc20251f59b763 100644 (file)
@@ -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>
index cb42ace366f4a55a3bee2341987cb66c3f27f418..6789f2af632d120e36dfbcfb3f4d2573bbeee5d6 100644 (file)
@@ -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>
diff --git a/ui/i18n/jquery.ui.datepicker-af.js b/ui/i18n/jquery.ui.datepicker-af.js
new file mode 100644 (file)
index 0000000..9aad2ab
--- /dev/null
@@ -0,0 +1,23 @@
+/* Afrikaans initialisation for the jQuery UI date picker plugin. */\r
+/* Written by Renier Pretorius. */\r
+jQuery(function($){\r
+       $.datepicker.regional['af'] = {\r
+               closeText: 'Selekteer',\r
+               prevText: 'Vorige',\r
+               nextText: 'Volgende',\r
+               currentText: 'Vandag',\r
+               monthNames: ['Januarie','Februarie','Maart','April','Mei','Junie',\r
+               'Julie','Augustus','September','Oktober','November','Desember'],\r
+               monthNamesShort: ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun',\r
+               'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],\r
+               dayNames: ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'],\r
+               dayNamesShort: ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'],\r
+               dayNamesMin: ['So','Ma','Di','Wo','Do','Vr','Sa'],\r
+               weekHeader: 'Wk',\r
+               dateFormat: 'dd/mm/yy',\r
+               firstDay: 1,\r
+               isRTL: false,\r
+               showMonthAfterYear: false,\r
+               yearSuffix: ''};\r
+       $.datepicker.setDefaults($.datepicker.regional['af']);\r
+});\r
diff --git a/ui/i18n/jquery.ui.datepicker-en-GB.js b/ui/i18n/jquery.ui.datepicker-en-GB.js
new file mode 100644 (file)
index 0000000..bf909dd
--- /dev/null
@@ -0,0 +1,23 @@
+/* English/UK initialisation for the jQuery UI date picker plugin. */\r
+/* Written by Stuart. */\r
+jQuery(function($){\r
+       $.datepicker.regional['en-GB'] = {\r
+               closeText: 'Clear',\r
+               prevText: 'Prev',\r
+               nextText: 'Next',\r
+               currentText: 'Today',\r
+               monthNames: ['January','February','March','April','May','June',\r
+               'July','August','September','October','November','December'],\r
+               monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',\r
+               'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\r
+               dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\r
+               dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\r
+               dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],\r
+               weekHeader: 'Wk',\r
+               dateFormat: 'dd/mm/yy',\r
+               firstDay: 1,\r
+               isRTL: false,\r
+               showMonthAfterYear: false,\r
+               yearSuffix: ''};\r
+       $.datepicker.setDefaults($.datepicker.regional['en-GB']);\r
+});\r