Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Datepicker: Fixed #4613 Datepicker Swiss-French (fr-CH) localization

  • Loading branch information...
commit 681bcc4ad06def86eeceabb8b8a062d36148cd5e 1 parent 35a4052
Keith Wood authored
View
2  demos/datepicker/localization.html
@@ -21,6 +21,7 @@
<script type="text/javascript" src="../../ui/i18n/ui.datepicker-fa.js"></script>
<script type="text/javascript" src="../../ui/i18n/ui.datepicker-fi.js"></script>
<script type="text/javascript" src="../../ui/i18n/ui.datepicker-fr.js"></script>
+ <script type="text/javascript" src="../../ui/i18n/ui.datepicker-fr-CH.js"></script>
<script type="text/javascript" src="../../ui/i18n/ui.datepicker-he.js"></script>
<script type="text/javascript" src="../../ui/i18n/ui.datepicker-hr.js"></script>
<script type="text/javascript" src="../../ui/i18n/ui.datepicker-hu.js"></script>
@@ -86,6 +87,7 @@
<option value="fa">Farsi/Persian (&#8235;(&#1601;&#1575;&#1585;&#1587;&#1740;</option>
<option value="fi">Finnish (suomi)</option>
<option value="fr" selected="selected">French (Fran&ccedil;ais)</option>
+ <option value="fr-CH">French/Swiss (Fran&ccedil;ais de Suisse)</option>
<option value="de">German (Deutsch)</option>
<option value="el">Greek (&#917;&#955;&#955;&#951;&#957;&#953;&#954;&#940;)</option>
<option value="he">Hebrew (&#8235;(&#1506;&#1489;&#1512;&#1497;&#1514;</option>
View
1  demos/index.html
@@ -47,6 +47,7 @@
<script type="text/javascript" src="../ui/i18n/ui.datepicker-fa.js"></script>
<script type="text/javascript" src="../ui/i18n/ui.datepicker-fi.js"></script>
<script type="text/javascript" src="../ui/i18n/ui.datepicker-fr.js"></script>
+ <script type="text/javascript" src="../ui/i18n/ui.datepicker-fr-CH.js"></script>
<script type="text/javascript" src="../ui/i18n/ui.datepicker-he.js"></script>
<script type="text/javascript" src="../ui/i18n/ui.datepicker-hr.js"></script>
<script type="text/javascript" src="../ui/i18n/ui.datepicker-hu.js"></script>
View
7 ui/i18n/ui.datepicker-fr-CH.js
@@ -0,0 +1,7 @@
+/* Swiss-French initialisation for the jQuery UI date picker plugin. */
+/* Written Martin Voelkle (martin.voelkle@e-tc.ch). */
+jQuery(function($){
+ $.datepicker.regional['fr-CH'] =
+ $.extend({}, $.datepicker.regional['fr'], {dateFormat: 'dd.mm.yy'});
+ $.datepicker.setDefaults($.datepicker.regional['fr-CH']);
+});
Please sign in to comment.
Something went wrong with that request. Please try again.