diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-21 16:59:18 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-07-21 11:00:41 -0400 |
commit | 9484718a00d68a36f5600c6c49365d134d1df79e (patch) | |
tree | ac228ad1926efaf5bfee54aa5e9ce6c4ddc7aa13 /demos/datepicker | |
parent | 4c223432816409369e364893b3e890596d639c9c (diff) | |
download | jquery-ui-9484718a00d68a36f5600c6c49365d134d1df79e.tar.gz jquery-ui-9484718a00d68a36f5600c6c49365d134d1df79e.zip |
Datepicker: Update localization demo to use i18n files from ui folder
Ref #10119
Diffstat (limited to 'demos/datepicker')
-rw-r--r-- | demos/datepicker/datepicker-ar.js | 36 | ||||
-rw-r--r-- | demos/datepicker/datepicker-fr.js | 38 | ||||
-rw-r--r-- | demos/datepicker/datepicker-he.js | 36 | ||||
-rw-r--r-- | demos/datepicker/datepicker-zh-TW.js | 36 | ||||
-rw-r--r-- | demos/datepicker/localization.html | 2 |
5 files changed, 1 insertions, 147 deletions
diff --git a/demos/datepicker/datepicker-ar.js b/demos/datepicker/datepicker-ar.js deleted file mode 100644 index 5973f327e..000000000 --- a/demos/datepicker/datepicker-ar.js +++ /dev/null @@ -1,36 +0,0 @@ -/* 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 */ -(function( factory ) { - if ( typeof define === "function" && define.amd ) { - - // AMD. Register as an anonymous module. - define([ "datepicker" ], factory ); - } else { - - // Browser globals - factory( jQuery.datepicker ); - } -}(function( datepicker ) { - 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']); - - return datepicker.regional['ar']; - -})); diff --git a/demos/datepicker/datepicker-fr.js b/demos/datepicker/datepicker-fr.js deleted file mode 100644 index f03229b68..000000000 --- a/demos/datepicker/datepicker-fr.js +++ /dev/null @@ -1,38 +0,0 @@ -/* 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> */ -(function( factory ) { - if ( typeof define === "function" && define.amd ) { - - // AMD. Register as an anonymous module. - define([ "datepicker" ], factory ); - } else { - - // Browser globals - factory( jQuery.datepicker ); - } -}(function( datepicker ) { - 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']); - - return datepicker.regional['fr']; - -})); diff --git a/demos/datepicker/datepicker-he.js b/demos/datepicker/datepicker-he.js deleted file mode 100644 index 32bcdebb0..000000000 --- a/demos/datepicker/datepicker-he.js +++ /dev/null @@ -1,36 +0,0 @@ -/* Hebrew initialisation for the UI Datepicker extension. */ -/* Written by Amir Hardon (ahardon at gmail dot com). */ -(function( factory ) { - if ( typeof define === "function" && define.amd ) { - - // AMD. Register as an anonymous module. - define([ "datepicker" ], factory ); - } else { - - // Browser globals - factory( jQuery.datepicker ); - } -}(function( datepicker ) { - 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']); - - return datepicker.regional['he']; - -})); diff --git a/demos/datepicker/datepicker-zh-TW.js b/demos/datepicker/datepicker-zh-TW.js deleted file mode 100644 index 178409e19..000000000 --- a/demos/datepicker/datepicker-zh-TW.js +++ /dev/null @@ -1,36 +0,0 @@ -/* Chinese initialisation for the jQuery UI date picker plugin. */ -/* Written by Ressol (ressol@gmail.com). */ -(function( factory ) { - if ( typeof define === "function" && define.amd ) { - - // AMD. Register as an anonymous module. - define([ "datepicker" ], factory ); - } else { - - // Browser globals - factory( jQuery.datepicker ); - } -}(function( datepicker ) { - 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']); - - return datepicker.regional['zh-TW']; - -})); diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html index b3d6ccf6f..351b2c9e1 100644 --- a/demos/datepicker/localization.html +++ b/demos/datepicker/localization.html @@ -6,7 +6,7 @@ <link rel="stylesheet" href="../../themes/base/all.css"> <link rel="stylesheet" href="../demos.css"> <script src="../../external/requirejs/require.js"></script> - <script src="../bootstrap.js" data-modules="datepicker-ar.js datepicker-fr.js datepicker-he.js datepicker-zh-TW.js"> + <script src="../bootstrap.js" data-modules="i18n/datepicker-ar i18n/datepicker-fr i18n/datepicker-he i18n/datepicker-zh-TW"> $( "#datepicker" ).datepicker( $.datepicker.regional[ "fr" ] ); $( "#locale" ).on( "change", function() { $( "#datepicker" ).datepicker( "option", |