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