40 |
aurelien |
1 |
<!DOCTYPE html>
|
|
|
2 |
<html lang="en">
|
|
|
3 |
<head>
|
|
|
4 |
<meta charset="utf-8">
|
|
|
5 |
<title>jQuery UI Datepicker - Localize calendar</title>
|
|
|
6 |
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
|
|
7 |
<script src="../../jquery-1.4.2.js"></script>
|
|
|
8 |
<script src="../../ui/jquery.ui.core.js"></script>
|
|
|
9 |
<script src="../../ui/jquery.ui.widget.js"></script>
|
|
|
10 |
<script src="../../ui/jquery.ui.datepicker.js"></script>
|
|
|
11 |
<script src="../../ui/i18n/jquery.ui.datepicker-af.js"></script>
|
|
|
12 |
<script src="../../ui/i18n/jquery.ui.datepicker-ar.js"></script>
|
|
|
13 |
<script src="../../ui/i18n/jquery.ui.datepicker-az.js"></script>
|
|
|
14 |
<script src="../../ui/i18n/jquery.ui.datepicker-bg.js"></script>
|
|
|
15 |
<script src="../../ui/i18n/jquery.ui.datepicker-bs.js"></script>
|
|
|
16 |
<script src="../../ui/i18n/jquery.ui.datepicker-ca.js"></script>
|
|
|
17 |
<script src="../../ui/i18n/jquery.ui.datepicker-cs.js"></script>
|
|
|
18 |
<script src="../../ui/i18n/jquery.ui.datepicker-da.js"></script>
|
|
|
19 |
<script src="../../ui/i18n/jquery.ui.datepicker-de.js"></script>
|
|
|
20 |
<script src="../../ui/i18n/jquery.ui.datepicker-el.js"></script>
|
|
|
21 |
<script src="../../ui/i18n/jquery.ui.datepicker-en-GB.js"></script>
|
|
|
22 |
<script src="../../ui/i18n/jquery.ui.datepicker-eo.js"></script>
|
|
|
23 |
<script src="../../ui/i18n/jquery.ui.datepicker-es.js"></script>
|
|
|
24 |
<script src="../../ui/i18n/jquery.ui.datepicker-et.js"></script>
|
|
|
25 |
<script src="../../ui/i18n/jquery.ui.datepicker-eu.js"></script>
|
|
|
26 |
<script src="../../ui/i18n/jquery.ui.datepicker-fa.js"></script>
|
|
|
27 |
<script src="../../ui/i18n/jquery.ui.datepicker-fi.js"></script>
|
|
|
28 |
<script src="../../ui/i18n/jquery.ui.datepicker-fo.js"></script>
|
|
|
29 |
<script src="../../ui/i18n/jquery.ui.datepicker-fr.js"></script>
|
|
|
30 |
<script src="../../ui/i18n/jquery.ui.datepicker-fr-CH.js"></script>
|
|
|
31 |
<script src="../../ui/i18n/jquery.ui.datepicker-he.js"></script>
|
|
|
32 |
<script src="../../ui/i18n/jquery.ui.datepicker-hr.js"></script>
|
|
|
33 |
<script src="../../ui/i18n/jquery.ui.datepicker-hu.js"></script>
|
|
|
34 |
<script src="../../ui/i18n/jquery.ui.datepicker-hy.js"></script>
|
|
|
35 |
<script src="../../ui/i18n/jquery.ui.datepicker-id.js"></script>
|
|
|
36 |
<script src="../../ui/i18n/jquery.ui.datepicker-is.js"></script>
|
|
|
37 |
<script src="../../ui/i18n/jquery.ui.datepicker-it.js"></script>
|
|
|
38 |
<script src="../../ui/i18n/jquery.ui.datepicker-ja.js"></script>
|
|
|
39 |
<script src="../../ui/i18n/jquery.ui.datepicker-ko.js"></script>
|
|
|
40 |
<script src="../../ui/i18n/jquery.ui.datepicker-kz.js"></script>
|
|
|
41 |
<script src="../../ui/i18n/jquery.ui.datepicker-lt.js"></script>
|
|
|
42 |
<script src="../../ui/i18n/jquery.ui.datepicker-lv.js"></script>
|
|
|
43 |
<script src="../../ui/i18n/jquery.ui.datepicker-ms.js"></script>
|
|
|
44 |
<script src="../../ui/i18n/jquery.ui.datepicker-nl.js"></script>
|
|
|
45 |
<script src="../../ui/i18n/jquery.ui.datepicker-no.js"></script>
|
|
|
46 |
<script src="../../ui/i18n/jquery.ui.datepicker-pl.js"></script>
|
|
|
47 |
<script src="../../ui/i18n/jquery.ui.datepicker-pt-BR.js"></script>
|
|
|
48 |
<script src="../../ui/i18n/jquery.ui.datepicker-ro.js"></script>
|
|
|
49 |
<script src="../../ui/i18n/jquery.ui.datepicker-ru.js"></script>
|
|
|
50 |
<script src="../../ui/i18n/jquery.ui.datepicker-sk.js"></script>
|
|
|
51 |
<script src="../../ui/i18n/jquery.ui.datepicker-sl.js"></script>
|
|
|
52 |
<script src="../../ui/i18n/jquery.ui.datepicker-sq.js"></script>
|
|
|
53 |
<script src="../../ui/i18n/jquery.ui.datepicker-sr.js"></script>
|
|
|
54 |
<script src="../../ui/i18n/jquery.ui.datepicker-sr-SR.js"></script>
|
|
|
55 |
<script src="../../ui/i18n/jquery.ui.datepicker-sv.js"></script>
|
|
|
56 |
<script src="../../ui/i18n/jquery.ui.datepicker-ta.js"></script>
|
|
|
57 |
<script src="../../ui/i18n/jquery.ui.datepicker-th.js"></script>
|
|
|
58 |
<script src="../../ui/i18n/jquery.ui.datepicker-tr.js"></script>
|
|
|
59 |
<script src="../../ui/i18n/jquery.ui.datepicker-uk.js"></script>
|
|
|
60 |
<script src="../../ui/i18n/jquery.ui.datepicker-vi.js"></script>
|
|
|
61 |
<script src="../../ui/i18n/jquery.ui.datepicker-zh-CN.js"></script>
|
|
|
62 |
<script src="../../ui/i18n/jquery.ui.datepicker-zh-HK.js"></script>
|
|
|
63 |
<script src="../../ui/i18n/jquery.ui.datepicker-zh-TW.js"></script>
|
|
|
64 |
<link rel="stylesheet" href="../demos.css">
|
|
|
65 |
<script>
|
|
|
66 |
$(function() {
|
|
|
67 |
$.datepicker.setDefaults( $.datepicker.regional[ "" ] );
|
|
|
68 |
$( "#datepicker" ).datepicker( $.datepicker.regional[ "fr" ] );
|
|
|
69 |
$( "#locale" ).change(function() {
|
|
|
70 |
$( "#datepicker" ).datepicker( "option",
|
|
|
71 |
$.datepicker.regional[ $( this ).val() ] );
|
|
|
72 |
});
|
|
|
73 |
});
|
|
|
74 |
</script>
|
|
|
75 |
</head>
|
|
|
76 |
<body>
|
|
|
77 |
|
|
|
78 |
<div class="demo">
|
|
|
79 |
|
|
|
80 |
<p>Date: <input type="text" id="datepicker"/>
|
|
|
81 |
<select id="locale">
|
|
|
82 |
<option value="af">Afrikaans</option>
|
|
|
83 |
<option value="sq">Albanian (Gjuha shqipe)</option>
|
|
|
84 |
<option value="ar">Arabic (‫(لعربي</option>
|
|
|
85 |
<option value="hy">Armenian (Հայերեն)</option>
|
|
|
86 |
<option value="az">Azerbaijani (Azərbaycan dili)</option>
|
|
|
87 |
<option value="eu">Basque (Euskara)</option>
|
|
|
88 |
<option value="bs">Bosnian (Bosanski)</option>
|
|
|
89 |
<option value="bg">Bulgarian (български език)</option>
|
|
|
90 |
<option value="ca">Catalan (Català)</option>
|
|
|
91 |
<option value="zh-HK">Chinese Hong Kong (繁體中文)</option>
|
|
|
92 |
<option value="zh-CN">Chinese Simplified (简体中文)</option>
|
|
|
93 |
<option value="zh-TW">Chinese Traditional (繁體中文)</option>
|
|
|
94 |
<option value="hr">Croatian (Hrvatski jezik)</option>
|
|
|
95 |
<option value="cs">Czech (čeština)</option>
|
|
|
96 |
<option value="da">Danish (Dansk)</option>
|
|
|
97 |
<option value="nl">Dutch (Nederlands)</option>
|
|
|
98 |
<option value="en-GB">English/UK</option>
|
|
|
99 |
<option value="eo">Esperanto</option>
|
|
|
100 |
<option value="et">Estonian (eesti keel)</option>
|
|
|
101 |
<option value="fo">Faroese (føroyskt)</option>
|
|
|
102 |
<option value="fa">Farsi/Persian (‫(فارسی</option>
|
|
|
103 |
<option value="fi">Finnish (suomi)</option>
|
|
|
104 |
<option value="fr" selected="selected">French (Français)</option>
|
|
|
105 |
<option value="fr-CH">French/Swiss (Français de Suisse)</option>
|
|
|
106 |
<option value="de">German (Deutsch)</option>
|
|
|
107 |
<option value="el">Greek (Ελληνικά)</option>
|
|
|
108 |
<option value="he">Hebrew (‫(עברית</option>
|
|
|
109 |
<option value="hu">Hungarian (Magyar)</option>
|
|
|
110 |
<option value="is">Icelandic (Õslenska)</option>
|
|
|
111 |
<option value="id">Indonesian (Bahasa Indonesia)</option>
|
|
|
112 |
<option value="it">Italian (Italiano)</option>
|
|
|
113 |
<option value="ja">Japanese (日本語)</option>
|
|
|
114 |
<option value="ko">Korean (한국어)</option>
|
|
|
115 |
<option value="kz">Kazakhstan (Kazakh)</option>
|
|
|
116 |
<option value="lv">Latvian (Latvieöu Valoda)</option>
|
|
|
117 |
<option value="lt">Lithuanian (lietuviu kalba)</option>
|
|
|
118 |
<option value="ms">Malaysian (Bahasa Malaysia)</option>
|
|
|
119 |
<option value="no">Norwegian (Norsk)</option>
|
|
|
120 |
<option value="pl">Polish (Polski)</option>
|
|
|
121 |
<option value="pt-BR">Portuguese/Brazilian (Português)</option>
|
|
|
122 |
<option value="ro">Romanian (Română)</option>
|
|
|
123 |
<option value="ru">Russian (Русский)</option>
|
|
|
124 |
<option value="sr">Serbian (српски језик)</option>
|
|
|
125 |
<option value="sr-SR">Serbian (srpski jezik)</option>
|
|
|
126 |
<option value="sk">Slovak (Slovencina)</option>
|
|
|
127 |
<option value="sl">Slovenian (Slovenski Jezik)</option>
|
|
|
128 |
<option value="es">Spanish (Español)</option>
|
|
|
129 |
<option value="sv">Swedish (Svenska)</option>
|
|
|
130 |
<option value="ta">Tamil (தமிழ்)</option>
|
|
|
131 |
<option value="th">Thai (ภาษาไทย)</option>
|
|
|
132 |
<option value="tr">Turkish (Türkçe)</option>
|
|
|
133 |
<option value="uk">Ukranian (Українська)</option>
|
|
|
134 |
<option value="vi">Vietnamese (Tiếng Việt)</option>
|
|
|
135 |
</select></p>
|
|
|
136 |
|
|
|
137 |
</div><!-- End demo -->
|
|
|
138 |
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
<div class="demo-description">
|
|
|
142 |
<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>
|
|
|
143 |
</div><!-- End demo-description -->
|
|
|
144 |
|
|
|
145 |
</body>
|
|
|
146 |
</html>
|