]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Fixed #4613 Datepicker Swiss-French (fr-CH) localization
authorKeith Wood <kbwood.au@gmail.com>
Mon, 22 Jun 2009 02:43:30 +0000 (02:43 +0000)
committerKeith Wood <kbwood.au@gmail.com>
Mon, 22 Jun 2009 02:43:30 +0000 (02:43 +0000)
demos/datepicker/localization.html
demos/index.html
ui/i18n/ui.datepicker-fr-CH.js [new file with mode: 0644]

index f024230ac7f042ec76705e9d6a57ea74266c0a82..49aacaa01176a90d5466abd1d363c8b46973d1d0 100644 (file)
@@ -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>
index 927416fbff5664ce4b5a33dd62853c1263e855c2..a11b452342c9d6ba80fb4a77b9204a8def588b7a 100644 (file)
@@ -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>
diff --git a/ui/i18n/ui.datepicker-fr-CH.js b/ui/i18n/ui.datepicker-fr-CH.js
new file mode 100644 (file)
index 0000000..0672c48
--- /dev/null
@@ -0,0 +1,7 @@
+/* Swiss-French initialisation for the jQuery UI date picker plugin. */\r
+/* Written Martin Voelkle (martin.voelkle@e-tc.ch). */\r
+jQuery(function($){\r
+       $.datepicker.regional['fr-CH'] =\r
+               $.extend({}, $.datepicker.regional['fr'], {dateFormat: 'dd.mm.yy'});\r
+       $.datepicker.setDefaults($.datepicker.regional['fr-CH']);\r
+});
\ No newline at end of file