diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-01-31 10:31:27 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-01-31 10:31:27 -0500 |
commit | 85dfcdf766cba709213c81ca2b8432b797aa45c1 (patch) | |
tree | 5af11abc346e9e8edab8712ccc02c7dbed66449d /demos/datepicker | |
parent | d36d116d360bbe54b7700b95185a6eb2069ed637 (diff) | |
download | jquery-ui-85dfcdf766cba709213c81ca2b8432b797aa45c1.tar.gz jquery-ui-85dfcdf766cba709213c81ca2b8432b797aa45c1.zip |
Datepicker demo: Simplify localization demo so that jqueryui.com works properly.
Diffstat (limited to 'demos/datepicker')
-rw-r--r-- | demos/datepicker/jquery.ui.datepicker-ar.js | 23 | ||||
-rw-r--r-- | demos/datepicker/jquery.ui.datepicker-fr.js | 25 | ||||
-rw-r--r-- | demos/datepicker/jquery.ui.datepicker-he.js | 23 | ||||
-rw-r--r-- | demos/datepicker/jquery.ui.datepicker-zh-TW.js | 23 | ||||
-rw-r--r-- | demos/datepicker/localization.html | 146 |
5 files changed, 98 insertions, 142 deletions
diff --git a/demos/datepicker/jquery.ui.datepicker-ar.js b/demos/datepicker/jquery.ui.datepicker-ar.js new file mode 100644 index 000000000..cef0f08fd --- /dev/null +++ b/demos/datepicker/jquery.ui.datepicker-ar.js @@ -0,0 +1,23 @@ +/* Arabic Translation for jQuery UI date picker plugin. */ +/* Khaled Alhourani -- me@khaledalhourani.com */ +/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */ +jQuery(function($){ + $.datepicker.regional['ar'] = { + closeText: 'إغلاق', + prevText: '<السابق', + nextText: 'التالي>', + currentText: 'اليوم', + monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'مايو', 'حزيران', + 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'], + monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], + dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'], + dayNamesMin: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + weekHeader: 'أسبوع', + dateFormat: 'dd/mm/yy', + firstDay: 6, + isRTL: true, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['ar']); +}); diff --git a/demos/datepicker/jquery.ui.datepicker-fr.js b/demos/datepicker/jquery.ui.datepicker-fr.js new file mode 100644 index 000000000..934afd1d0 --- /dev/null +++ b/demos/datepicker/jquery.ui.datepicker-fr.js @@ -0,0 +1,25 @@ +/* French initialisation for the jQuery UI date picker plugin. */ +/* Written by Keith Wood (kbwood{at}iinet.com.au), + Stéphane Nahmani (sholby@sholby.net), + Stéphane Raimbault <stephane.raimbault@gmail.com> */ +jQuery(function($){ + $.datepicker.regional['fr'] = { + closeText: 'Fermer', + prevText: 'Précédent', + nextText: 'Suivant', + currentText: 'Aujourd\'hui', + monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', + 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], + monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin', + 'Juil.','Août','Sept.','Oct.','Nov.','Déc.'], + dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], + dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'], + dayNamesMin: ['D','L','M','M','J','V','S'], + weekHeader: 'Sem.', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['fr']); +}); diff --git a/demos/datepicker/jquery.ui.datepicker-he.js b/demos/datepicker/jquery.ui.datepicker-he.js new file mode 100644 index 000000000..b9e8deec5 --- /dev/null +++ b/demos/datepicker/jquery.ui.datepicker-he.js @@ -0,0 +1,23 @@ +/* Hebrew initialisation for the UI Datepicker extension. */ +/* Written by Amir Hardon (ahardon at gmail dot com). */ +jQuery(function($){ + $.datepicker.regional['he'] = { + closeText: 'סגור', + prevText: '<הקודם', + nextText: 'הבא>', + currentText: 'היום', + monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני', + 'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'], + monthNamesShort: ['ינו','פבר','מרץ','אפר','מאי','יוני', + 'יולי','אוג','ספט','אוק','נוב','דצמ'], + dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'], + dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], + dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], + weekHeader: 'Wk', + dateFormat: 'dd/mm/yy', + firstDay: 0, + isRTL: true, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['he']); +}); diff --git a/demos/datepicker/jquery.ui.datepicker-zh-TW.js b/demos/datepicker/jquery.ui.datepicker-zh-TW.js new file mode 100644 index 000000000..b9105ea50 --- /dev/null +++ b/demos/datepicker/jquery.ui.datepicker-zh-TW.js @@ -0,0 +1,23 @@ +/* Chinese initialisation for the jQuery UI date picker plugin. */ +/* Written by Ressol (ressol@gmail.com). */ +jQuery(function($){ + $.datepicker.regional['zh-TW'] = { + closeText: '關閉', + prevText: '<上月', + nextText: '下月>', + currentText: '今天', + monthNames: ['一月','二月','三月','四月','五月','六月', + '七月','八月','九月','十月','十一月','十二月'], + monthNamesShort: ['一月','二月','三月','四月','五月','六月', + '七月','八月','九月','十月','十一月','十二月'], + dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], + dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], + dayNamesMin: ['日','一','二','三','四','五','六'], + weekHeader: '周', + dateFormat: 'yy/mm/dd', + firstDay: 1, + isRTL: false, + showMonthAfterYear: true, + yearSuffix: '年'}; + $.datepicker.setDefaults($.datepicker.regional['zh-TW']); +}); diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html index 4c5bebf65..ed01495e2 100644 --- a/demos/datepicker/localization.html +++ b/demos/datepicker/localization.html @@ -8,79 +8,10 @@ <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-be.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-CA.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-ky.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-nb.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-nn.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> + <script src="jquery.ui.datepicker-ar.js"></script> + <script src="jquery.ui.datepicker-fr.js"></script> + <script src="jquery.ui.datepicker-he.js"></script> + <script src="jquery.ui.datepicker-zh-TW.js"></script> <link rel="stylesheet" href="../demos.css"> <script> $(function() { @@ -97,79 +28,10 @@ <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="be">Belarusian</option> - <option value="bs">Bosnian (Bosanski)</option> - <option value="bg">Bulgarian (български език)</option> - <option value="fr-CA">Canadian French</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="ky">Kyrgyzstan (Kyrgyz)</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="nb">Norwegian (Bokmål)</option> - <option value="no">Norwegian (Norsk)</option> - <option value="nn">Norwegian (Nynorsk)</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 class="demo-description"> |