4 <title>jQuery UI Datepicker - Localize calendar</title>
5 <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
6 <script type="text/javascript" src="../../jquery-1.3.2.js"></script>
7 <script type="text/javascript" src="../../ui/ui.core.js"></script>
8 <script type="text/javascript" src="../../ui/ui.datepicker.js"></script>
9 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-ar.js"></script>
10 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-bg.js"></script>
11 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-ca.js"></script>
12 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-cs.js"></script>
13 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-da.js"></script>
14 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-de.js"></script>
15 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-el.js"></script>
16 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-eo.js"></script>
17 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-es.js"></script>
18 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-fa.js"></script>
19 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-fi.js"></script>
20 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-fr.js"></script>
21 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-he.js"></script>
22 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-hr.js"></script>
23 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-hu.js"></script>
24 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-hy.js"></script>
25 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-id.js"></script>
26 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-is.js"></script>
27 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-it.js"></script>
28 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-ja.js"></script>
29 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-ko.js"></script>
30 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-lt.js"></script>
31 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-lv.js"></script>
32 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-ms.js"></script>
33 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-nl.js"></script>
34 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-no.js"></script>
35 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-pl.js"></script>
36 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-pt-BR.js"></script>
37 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-ro.js"></script>
38 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-ru.js"></script>
39 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-sk.js"></script>
40 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-sl.js"></script>
41 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-sq.js"></script>
42 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-sr.js"></script>
43 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-sr-SR.js"></script>
44 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-sv.js"></script>
45 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-th.js"></script>
46 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-tr.js"></script>
47 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-uk.js"></script>
48 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-zh-CN.js"></script>
49 <script type="text/javascript" src="../../ui/i18n/ui.datepicker-zh-TW.js"></script>
50 <link type="text/css" href="../demos.css" rel="stylesheet" />
51 <script type="text/javascript">
53 $.datepicker.setDefaults($.extend({showMonthAfterYear: false}, $.datepicker.regional['']));
54 $("#datepicker").datepicker($.datepicker.regional['fr']);
55 $("#locale").change(function() {
56 $('#datepicker').datepicker('option', $.extend({showMonthAfterYear: false},
57 $.datepicker.regional[$(this).val()]));
66 <p>Date: <input type="text" id="datepicker"/>
68 <option value="sq">Albanian (Gjuha shqipe)</option>
69 <option value="ar">Arabic (‫(لعربي</option>
70 <option value="hy">Armenian (Հայերեն)</option>
71 <option value="bg">Bulgarian (български език)</option>
72 <option value="ca">Catalan (Català)</option>
73 <option value="zh-CN">Chinese Simplified (简体中文)</option>
74 <option value="zh-TW">Chinese Traditional (繁體中文)</option>
75 <option value="hr">Croatian (Hrvatski jezik)</option>
76 <option value="cs">Czech (Ceötina)</option>
77 <option value="da">Danish (Dansk)</option>
78 <option value="nl">Dutch (Nederlands)</option>
79 <option value="eo">Esperanto</option>
80 <option value="fa">Farsi/Persian (‫(فارسی</option>
81 <option value="fi">Finnish (suomi)</option>
82 <option value="fr" selected="selected">French (Français)</option>
83 <option value="de">German (Deutsch)</option>
84 <option value="el">Greek (Ελληνικά)</option>
85 <option value="he">Hebrew (‫(עברית</option>
86 <option value="hu">Hungarian (Magyar)</option>
87 <option value="is">Icelandic (Õslenska)</option>
88 <option value="id">Indonesian (Bahasa Indonesia)</option>
89 <option value="it">Italian (Italiano)</option>
90 <option value="ja">Japanese (日本語)</option>
91 <option value="ko">Korean (한국어)</option>
92 <option value="lv">Latvian (Latvieöu Valoda)</option>
93 <option value="lt">Lithuanian (lietuviu kalba)</option>
94 <option value="ms">Malaysian (Bahasa Malaysia)</option>
95 <option value="no">Norwegian (Norsk)</option>
96 <option value="pl">Polish (Polski)</option>
97 <option value="pt-BR">Portuguese/Brazilian (Português)</option>
98 <option value="ro">Romanian (Română)</option>
99 <option value="ru">Russian (Русский)</option>
100 <option value="sr">Serbian (српски језик)</option>
101 <option value="sr-SR">Serbian (srpski jezik)</option>
102 <option value="sk">Slovak (Slovencina)</option>
103 <option value="sl">Slovenian (Slovenski Jezik)</option>
104 <option value="es">Spanish (Español)</option>
105 <option value="sv">Swedish (Svenska)</option>
106 <option value="th">Thai (ภาษาไทย)</option>
107 <option value="tr">Turkish (Türkçe)</option>
108 <option value="uk">Ukranian (Українська)</option>
111 </div><!-- End demo -->
113 <div class="demo-description">
115 <p>Localize the datepicker calendar language and format (English / Western formatting is the default). The datepicker includes built-in support for languages that read right-to-left, such as Arabic and Hebrew.</p>
117 </div><!-- End demo-description -->