From 1216e2aaf5e9bae52abe1ef9dfb9ab34c271c56d Mon Sep 17 00:00:00 2001 From: Rafael Xavier de Souza Date: Wed, 17 Jul 2013 12:10:30 -0300 Subject: [PATCH] All: Wrap I18n files with UMD return exports Ref #9464 Ref gh-1029 --- demos/datepicker/jquery.ui.datepicker-ar.js | 21 +++++++++++++---- demos/datepicker/jquery.ui.datepicker-fr.js | 21 +++++++++++++---- demos/datepicker/jquery.ui.datepicker-he.js | 21 +++++++++++++---- .../datepicker/jquery.ui.datepicker-zh-TW.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-af.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-ar-DZ.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-ar.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-az.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-be.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-bg.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-bs.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-ca.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-cs.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-cy-GB.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-da.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-de.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-el.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-en-AU.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-en-GB.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-en-NZ.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-eo.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-es.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-et.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-eu.js | 23 +++++++++++++++---- ui/i18n/jquery.ui.datepicker-fa.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-fi.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-fo.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-fr-CA.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-fr-CH.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-fr.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-gl.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-he.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-hi.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-hr.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-hu.js | 23 +++++++++++++++---- ui/i18n/jquery.ui.datepicker-hy.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-id.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-is.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-it-CH.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-it.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-ja.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-ka.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-kk.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-km.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-ko.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-ky.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-lb.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-lt.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-lv.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-mk.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-ml.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-ms.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-nb.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-nl-BE.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-nl.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-nn.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-no.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-pl.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-pt-BR.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-pt.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-rm.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-ro.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-ru.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-sk.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-sl.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-sq.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-sr-SR.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-sr.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-sv.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-ta.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-th.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-tj.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-tr.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-uk.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-vi.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-zh-CN.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-zh-HK.js | 21 +++++++++++++---- ui/i18n/jquery.ui.datepicker-zh-TW.js | 21 +++++++++++++---- 78 files changed, 1328 insertions(+), 314 deletions(-) diff --git a/demos/datepicker/jquery.ui.datepicker-ar.js b/demos/datepicker/jquery.ui.datepicker-ar.js index cef0f08fd..fc6d2a883 100644 --- a/demos/datepicker/jquery.ui.datepicker-ar.js +++ b/demos/datepicker/jquery.ui.datepicker-ar.js @@ -1,8 +1,18 @@ /* 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'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ar'] = { closeText: 'إغلاق', prevText: '<السابق', nextText: 'التالي>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: true, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ar']); -}); + datepicker.setDefaults(datepicker.regional['ar']); + + return datepicker.regional['ar']; + +})); diff --git a/demos/datepicker/jquery.ui.datepicker-fr.js b/demos/datepicker/jquery.ui.datepicker-fr.js index 2d06743a6..33fa80d48 100644 --- a/demos/datepicker/jquery.ui.datepicker-fr.js +++ b/demos/datepicker/jquery.ui.datepicker-fr.js @@ -2,8 +2,18 @@ /* Written by Keith Wood (kbwood{at}iinet.com.au), Stéphane Nahmani (sholby@sholby.net), Stéphane Raimbault */ -jQuery(function($){ - $.datepicker.regional['fr'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['fr'] = { closeText: 'Fermer', prevText: 'Précédent', nextText: 'Suivant', @@ -21,5 +31,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fr']); -}); + datepicker.setDefaults(datepicker.regional['fr']); + + return datepicker.regional['fr']; + +})); diff --git a/demos/datepicker/jquery.ui.datepicker-he.js b/demos/datepicker/jquery.ui.datepicker-he.js index b9e8deec5..bf58038f5 100644 --- a/demos/datepicker/jquery.ui.datepicker-he.js +++ b/demos/datepicker/jquery.ui.datepicker-he.js @@ -1,7 +1,17 @@ /* Hebrew initialisation for the UI Datepicker extension. */ /* Written by Amir Hardon (ahardon at gmail dot com). */ -jQuery(function($){ - $.datepicker.regional['he'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['he'] = { closeText: 'סגור', prevText: '<הקודם', nextText: 'הבא>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: true, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['he']); -}); + datepicker.setDefaults(datepicker.regional['he']); + + return datepicker.regional['he']; + +})); diff --git a/demos/datepicker/jquery.ui.datepicker-zh-TW.js b/demos/datepicker/jquery.ui.datepicker-zh-TW.js index b9105ea50..ebfd73ac5 100644 --- a/demos/datepicker/jquery.ui.datepicker-zh-TW.js +++ b/demos/datepicker/jquery.ui.datepicker-zh-TW.js @@ -1,7 +1,17 @@ /* Chinese initialisation for the jQuery UI date picker plugin. */ /* Written by Ressol (ressol@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['zh-TW'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['zh-TW'] = { closeText: '關閉', prevText: '<上月', nextText: '下月>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: true, yearSuffix: '年'}; - $.datepicker.setDefaults($.datepicker.regional['zh-TW']); -}); + datepicker.setDefaults(datepicker.regional['zh-TW']); + + return datepicker.regional['zh-TW']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-af.js b/ui/i18n/jquery.ui.datepicker-af.js index 0922ef7a1..e46a90a4e 100644 --- a/ui/i18n/jquery.ui.datepicker-af.js +++ b/ui/i18n/jquery.ui.datepicker-af.js @@ -1,7 +1,17 @@ /* Afrikaans initialisation for the jQuery UI date picker plugin. */ /* Written by Renier Pretorius. */ -jQuery(function($){ - $.datepicker.regional['af'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['af'] = { closeText: 'Selekteer', prevText: 'Vorige', nextText: 'Volgende', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['af']); -}); + datepicker.setDefaults(datepicker.regional['af']); + + return datepicker.regional['af']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ar-DZ.js b/ui/i18n/jquery.ui.datepicker-ar-DZ.js index 7b175af40..bfffc0301 100644 --- a/ui/i18n/jquery.ui.datepicker-ar-DZ.js +++ b/ui/i18n/jquery.ui.datepicker-ar-DZ.js @@ -1,8 +1,18 @@ /* Algerian Arabic Translation for jQuery UI date picker plugin. (can be used for Tunisia)*/ /* Mohamed Cherif BOUCHELAGHEM -- cherifbouchelaghem@yahoo.fr */ -jQuery(function($){ - $.datepicker.regional['ar-DZ'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ar-DZ'] = { closeText: 'إغلاق', prevText: '<السابق', nextText: 'التالي>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: true, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ar-DZ']); -}); + datepicker.setDefaults(datepicker.regional['ar-DZ']); + + return datepicker.regional['ar-DZ']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ar.js b/ui/i18n/jquery.ui.datepicker-ar.js index cef0f08fd..fc6d2a883 100644 --- a/ui/i18n/jquery.ui.datepicker-ar.js +++ b/ui/i18n/jquery.ui.datepicker-ar.js @@ -1,8 +1,18 @@ /* 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'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ar'] = { closeText: 'إغلاق', prevText: '<السابق', nextText: 'التالي>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: true, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ar']); -}); + datepicker.setDefaults(datepicker.regional['ar']); + + return datepicker.regional['ar']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-az.js b/ui/i18n/jquery.ui.datepicker-az.js index a133a9eb2..4addf76ef 100644 --- a/ui/i18n/jquery.ui.datepicker-az.js +++ b/ui/i18n/jquery.ui.datepicker-az.js @@ -1,7 +1,17 @@ /* Azerbaijani (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Jamil Najafov (necefov33@gmail.com). */ -jQuery(function($) { - $.datepicker.regional['az'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['az'] = { closeText: 'Bağla', prevText: '<Geri', nextText: 'İrəli>', @@ -19,5 +29,8 @@ jQuery(function($) { isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['az']); -}); + datepicker.setDefaults(datepicker.regional['az']); + + return datepicker.regional['az']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-be.js b/ui/i18n/jquery.ui.datepicker-be.js index 6ea12f725..d0b2d870b 100644 --- a/ui/i18n/jquery.ui.datepicker-be.js +++ b/ui/i18n/jquery.ui.datepicker-be.js @@ -1,7 +1,17 @@ /* Belarusian initialisation for the jQuery UI date picker plugin. */ /* Written by Pavel Selitskas */ -jQuery(function($){ - $.datepicker.regional['be'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['be'] = { closeText: 'Зачыніць', prevText: '←Папяр.', nextText: 'Наст.→', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['be']); -}); + datepicker.setDefaults(datepicker.regional['be']); + + return datepicker.regional['be']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-bg.js b/ui/i18n/jquery.ui.datepicker-bg.js index 86ab88582..934c4f37a 100644 --- a/ui/i18n/jquery.ui.datepicker-bg.js +++ b/ui/i18n/jquery.ui.datepicker-bg.js @@ -1,7 +1,17 @@ /* Bulgarian initialisation for the jQuery UI date picker plugin. */ /* Written by Stoyan Kyosev (http://svest.org). */ -jQuery(function($){ - $.datepicker.regional['bg'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['bg'] = { closeText: 'затвори', prevText: '<назад', nextText: 'напред>', @@ -20,5 +30,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['bg']); -}); + datepicker.setDefaults(datepicker.regional['bg']); + + return datepicker.regional['bg']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-bs.js b/ui/i18n/jquery.ui.datepicker-bs.js index f08870ffe..a84dc190c 100644 --- a/ui/i18n/jquery.ui.datepicker-bs.js +++ b/ui/i18n/jquery.ui.datepicker-bs.js @@ -1,7 +1,17 @@ /* Bosnian i18n for the jQuery UI date picker plugin. */ /* Written by Kenan Konjo. */ -jQuery(function($){ - $.datepicker.regional['bs'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['bs'] = { closeText: 'Zatvori', prevText: '<', nextText: '>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['bs']); -}); + datepicker.setDefaults(datepicker.regional['bs']); + + return datepicker.regional['bs']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ca.js b/ui/i18n/jquery.ui.datepicker-ca.js index a10b549c2..0f0358fbe 100644 --- a/ui/i18n/jquery.ui.datepicker-ca.js +++ b/ui/i18n/jquery.ui.datepicker-ca.js @@ -1,7 +1,17 @@ /* Inicialització en català per a l'extensió 'UI date picker' per jQuery. */ /* Writers: (joan.leon@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['ca'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ca'] = { closeText: 'Tanca', prevText: 'Anterior', nextText: 'Següent', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ca']); -}); + datepicker.setDefaults(datepicker.regional['ca']); + + return datepicker.regional['ca']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-cs.js b/ui/i18n/jquery.ui.datepicker-cs.js index b96b1a51c..7aae89753 100644 --- a/ui/i18n/jquery.ui.datepicker-cs.js +++ b/ui/i18n/jquery.ui.datepicker-cs.js @@ -1,7 +1,17 @@ /* Czech initialisation for the jQuery UI date picker plugin. */ /* Written by Tomas Muller (tomas@tomas-muller.net). */ -jQuery(function($){ - $.datepicker.regional['cs'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['cs'] = { closeText: 'Zavřít', prevText: '<Dříve', nextText: 'Později>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['cs']); -}); + datepicker.setDefaults(datepicker.regional['cs']); + + return datepicker.regional['cs']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-cy-GB.js b/ui/i18n/jquery.ui.datepicker-cy-GB.js index cf3a38e6c..716c5ba97 100644 --- a/ui/i18n/jquery.ui.datepicker-cy-GB.js +++ b/ui/i18n/jquery.ui.datepicker-cy-GB.js @@ -1,7 +1,17 @@ /* Welsh/UK initialisation for the jQuery UI date picker plugin. */ /* Written by William Griffiths. */ -jQuery(function($){ - $.datepicker.regional['cy-GB'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['cy-GB'] = { closeText: 'Done', prevText: 'Prev', nextText: 'Next', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['cy-GB']); -}); + datepicker.setDefaults(datepicker.regional['cy-GB']); + + return datepicker.regional['cy-GB']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-da.js b/ui/i18n/jquery.ui.datepicker-da.js index 7e42948b3..feffbd65c 100644 --- a/ui/i18n/jquery.ui.datepicker-da.js +++ b/ui/i18n/jquery.ui.datepicker-da.js @@ -1,7 +1,17 @@ /* Danish initialisation for the jQuery UI date picker plugin. */ /* Written by Jan Christensen ( deletestuff@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['da'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['da'] = { closeText: 'Luk', prevText: '<Forrige', nextText: 'Næste>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['da']); -}); + datepicker.setDefaults(datepicker.regional['da']); + + return datepicker.regional['da']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-de.js b/ui/i18n/jquery.ui.datepicker-de.js index abe75c4e4..4492541c4 100644 --- a/ui/i18n/jquery.ui.datepicker-de.js +++ b/ui/i18n/jquery.ui.datepicker-de.js @@ -1,7 +1,17 @@ /* German initialisation for the jQuery UI date picker plugin. */ /* Written by Milian Wolff (mail@milianw.de). */ -jQuery(function($){ - $.datepicker.regional['de'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['de'] = { closeText: 'Schließen', prevText: '<Zurück', nextText: 'Vor>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['de']); -}); + datepicker.setDefaults(datepicker.regional['de']); + + return datepicker.regional['de']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-el.js b/ui/i18n/jquery.ui.datepicker-el.js index 1ac47561a..3a4967c60 100644 --- a/ui/i18n/jquery.ui.datepicker-el.js +++ b/ui/i18n/jquery.ui.datepicker-el.js @@ -1,7 +1,17 @@ /* Greek (el) initialisation for the jQuery UI date picker plugin. */ /* Written by Alex Cicovic (http://www.alexcicovic.com) */ -jQuery(function($){ - $.datepicker.regional['el'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['el'] = { closeText: 'Κλείσιμο', prevText: 'Προηγούμενος', nextText: 'Επόμενος', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['el']); -}); + datepicker.setDefaults(datepicker.regional['el']); + + return datepicker.regional['el']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-en-AU.js b/ui/i18n/jquery.ui.datepicker-en-AU.js index c1a1020a1..05dc924fc 100644 --- a/ui/i18n/jquery.ui.datepicker-en-AU.js +++ b/ui/i18n/jquery.ui.datepicker-en-AU.js @@ -1,7 +1,17 @@ /* English/Australia initialisation for the jQuery UI date picker plugin. */ /* Based on the en-GB initialisation. */ -jQuery(function($){ - $.datepicker.regional['en-AU'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['en-AU'] = { closeText: 'Done', prevText: 'Prev', nextText: 'Next', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['en-AU']); -}); + datepicker.setDefaults(datepicker.regional['en-AU']); + + return datepicker.regional['en-AU']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-en-GB.js b/ui/i18n/jquery.ui.datepicker-en-GB.js index 16a096e75..bac853397 100644 --- a/ui/i18n/jquery.ui.datepicker-en-GB.js +++ b/ui/i18n/jquery.ui.datepicker-en-GB.js @@ -1,7 +1,17 @@ /* English/UK initialisation for the jQuery UI date picker plugin. */ /* Written by Stuart. */ -jQuery(function($){ - $.datepicker.regional['en-GB'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['en-GB'] = { closeText: 'Done', prevText: 'Prev', nextText: 'Next', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['en-GB']); -}); + datepicker.setDefaults(datepicker.regional['en-GB']); + + return datepicker.regional['en-GB']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-en-NZ.js b/ui/i18n/jquery.ui.datepicker-en-NZ.js index 7819df052..541afde3d 100644 --- a/ui/i18n/jquery.ui.datepicker-en-NZ.js +++ b/ui/i18n/jquery.ui.datepicker-en-NZ.js @@ -1,7 +1,17 @@ /* English/New Zealand initialisation for the jQuery UI date picker plugin. */ /* Based on the en-GB initialisation. */ -jQuery(function($){ - $.datepicker.regional['en-NZ'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['en-NZ'] = { closeText: 'Done', prevText: 'Prev', nextText: 'Next', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['en-NZ']); -}); + datepicker.setDefaults(datepicker.regional['en-NZ']); + + return datepicker.regional['en-NZ']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-eo.js b/ui/i18n/jquery.ui.datepicker-eo.js index 39e44fc57..bc3eb199d 100644 --- a/ui/i18n/jquery.ui.datepicker-eo.js +++ b/ui/i18n/jquery.ui.datepicker-eo.js @@ -1,7 +1,17 @@ /* Esperanto initialisation for the jQuery UI date picker plugin. */ /* Written by Olivier M. (olivierweb@ifrance.com). */ -jQuery(function($){ - $.datepicker.regional['eo'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['eo'] = { closeText: 'Fermi', prevText: '<Anta', nextText: 'Sekv>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['eo']); -}); + datepicker.setDefaults(datepicker.regional['eo']); + + return datepicker.regional['eo']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-es.js b/ui/i18n/jquery.ui.datepicker-es.js index ae32124e7..b730a4d2e 100644 --- a/ui/i18n/jquery.ui.datepicker-es.js +++ b/ui/i18n/jquery.ui.datepicker-es.js @@ -1,7 +1,17 @@ /* Inicialización en español para la extensión 'UI date picker' para jQuery. */ /* Traducido por Vester (xvester@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['es'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['es'] = { closeText: 'Cerrar', prevText: '<Ant', nextText: 'Sig>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['es']); -}); + datepicker.setDefaults(datepicker.regional['es']); + + return datepicker.regional['es']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-et.js b/ui/i18n/jquery.ui.datepicker-et.js index 62cbea8fa..5494dfc49 100644 --- a/ui/i18n/jquery.ui.datepicker-et.js +++ b/ui/i18n/jquery.ui.datepicker-et.js @@ -1,7 +1,17 @@ /* Estonian initialisation for the jQuery UI date picker plugin. */ /* Written by Mart Sõmermaa (mrts.pydev at gmail com). */ -jQuery(function($){ - $.datepicker.regional['et'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['et'] = { closeText: 'Sulge', prevText: 'Eelnev', nextText: 'Järgnev', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['et']); -}); + datepicker.setDefaults(datepicker.regional['et']); + + return datepicker.regional['et']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-eu.js b/ui/i18n/jquery.ui.datepicker-eu.js index a71db2c72..b7dc857bf 100644 --- a/ui/i18n/jquery.ui.datepicker-eu.js +++ b/ui/i18n/jquery.ui.datepicker-eu.js @@ -1,7 +1,17 @@ -/* Euskarako oinarria 'UI date picker' jquery-ko extentsioarentzat */ /* Karrikas-ek itzulia (karrikas@karrikas.com) */ -jQuery(function($){ - $.datepicker.regional['eu'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "jquery", "../jquery.ui.datepicker" + ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['eu'] = { closeText: 'Egina', prevText: '<Aur', nextText: 'Hur>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['eu']); -}); + datepicker.setDefaults(datepicker.regional['eu']); + + return datepicker.regional['eu']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-fa.js b/ui/i18n/jquery.ui.datepicker-fa.js index bb957f6d8..a22f48c41 100644 --- a/ui/i18n/jquery.ui.datepicker-fa.js +++ b/ui/i18n/jquery.ui.datepicker-fa.js @@ -1,8 +1,18 @@ /* Persian (Farsi) Translation for the jQuery UI date picker plugin. */ /* Javad Mowlanezhad -- jmowla@gmail.com */ /* Jalali calendar should supported soon! (Its implemented but I have to test it) */ -jQuery(function($) { - $.datepicker.regional['fa'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['fa'] = { closeText: 'بستن', prevText: '<قبلی', nextText: 'بعدی>', @@ -55,5 +65,8 @@ jQuery(function($) { isRTL: true, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fa']); -}); + datepicker.setDefaults(datepicker.regional['fa']); + + return datepicker.regional['fa']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-fi.js b/ui/i18n/jquery.ui.datepicker-fi.js index e5c554aba..00796e258 100644 --- a/ui/i18n/jquery.ui.datepicker-fi.js +++ b/ui/i18n/jquery.ui.datepicker-fi.js @@ -1,7 +1,17 @@ /* Finnish initialisation for the jQuery UI date picker plugin. */ /* Written by Harri Kilpiö (harrikilpio@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['fi'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['fi'] = { closeText: 'Sulje', prevText: '«Edellinen', nextText: 'Seuraava»', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fi']); -}); + datepicker.setDefaults(datepicker.regional['fi']); + + return datepicker.regional['fi']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-fo.js b/ui/i18n/jquery.ui.datepicker-fo.js index cb0e3def7..0993f514d 100644 --- a/ui/i18n/jquery.ui.datepicker-fo.js +++ b/ui/i18n/jquery.ui.datepicker-fo.js @@ -1,7 +1,17 @@ /* Faroese initialisation for the jQuery UI date picker plugin */ /* Written by Sverri Mohr Olsen, sverrimo@gmail.com */ -jQuery(function($){ - $.datepicker.regional['fo'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['fo'] = { closeText: 'Lat aftur', prevText: '<Fyrra', nextText: 'Næsta>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fo']); -}); + datepicker.setDefaults(datepicker.regional['fo']); + + return datepicker.regional['fo']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-fr-CA.js b/ui/i18n/jquery.ui.datepicker-fr-CA.js index e20822185..ac46786bd 100644 --- a/ui/i18n/jquery.ui.datepicker-fr-CA.js +++ b/ui/i18n/jquery.ui.datepicker-fr-CA.js @@ -1,6 +1,16 @@ /* Canadian-French initialisation for the jQuery UI date picker plugin. */ -jQuery(function ($) { - $.datepicker.regional['fr-CA'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['fr-CA'] = { closeText: 'Fermer', prevText: 'Précédent', nextText: 'Suivant', @@ -19,5 +29,8 @@ jQuery(function ($) { showMonthAfterYear: false, yearSuffix: '' }; - $.datepicker.setDefaults($.datepicker.regional['fr-CA']); -}); + datepicker.setDefaults(datepicker.regional['fr-CA']); + + return datepicker.regional['fr-CA']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-fr-CH.js b/ui/i18n/jquery.ui.datepicker-fr-CH.js index 744fe1c3d..27669e0ea 100644 --- a/ui/i18n/jquery.ui.datepicker-fr-CH.js +++ b/ui/i18n/jquery.ui.datepicker-fr-CH.js @@ -1,7 +1,17 @@ /* Swiss-French initialisation for the jQuery UI date picker plugin. */ /* Written Martin Voelkle (martin.voelkle@e-tc.ch). */ -jQuery(function($){ - $.datepicker.regional['fr-CH'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['fr-CH'] = { closeText: 'Fermer', prevText: '<Préc', nextText: 'Suiv>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fr-CH']); -}); + datepicker.setDefaults(datepicker.regional['fr-CH']); + + return datepicker.regional['fr-CH']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-fr.js b/ui/i18n/jquery.ui.datepicker-fr.js index 2d06743a6..33fa80d48 100644 --- a/ui/i18n/jquery.ui.datepicker-fr.js +++ b/ui/i18n/jquery.ui.datepicker-fr.js @@ -2,8 +2,18 @@ /* Written by Keith Wood (kbwood{at}iinet.com.au), Stéphane Nahmani (sholby@sholby.net), Stéphane Raimbault */ -jQuery(function($){ - $.datepicker.regional['fr'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['fr'] = { closeText: 'Fermer', prevText: 'Précédent', nextText: 'Suivant', @@ -21,5 +31,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['fr']); -}); + datepicker.setDefaults(datepicker.regional['fr']); + + return datepicker.regional['fr']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-gl.js b/ui/i18n/jquery.ui.datepicker-gl.js index 59b989a6d..096166643 100644 --- a/ui/i18n/jquery.ui.datepicker-gl.js +++ b/ui/i18n/jquery.ui.datepicker-gl.js @@ -1,7 +1,17 @@ /* Galician localization for 'UI date picker' jQuery extension. */ /* Translated by Jorge Barreiro . */ -jQuery(function($){ - $.datepicker.regional['gl'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['gl'] = { closeText: 'Pechar', prevText: '<Ant', nextText: 'Seg>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['gl']); -}); + datepicker.setDefaults(datepicker.regional['gl']); + + return datepicker.regional['gl']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-he.js b/ui/i18n/jquery.ui.datepicker-he.js index b9e8deec5..bf58038f5 100644 --- a/ui/i18n/jquery.ui.datepicker-he.js +++ b/ui/i18n/jquery.ui.datepicker-he.js @@ -1,7 +1,17 @@ /* Hebrew initialisation for the UI Datepicker extension. */ /* Written by Amir Hardon (ahardon at gmail dot com). */ -jQuery(function($){ - $.datepicker.regional['he'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['he'] = { closeText: 'סגור', prevText: '<הקודם', nextText: 'הבא>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: true, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['he']); -}); + datepicker.setDefaults(datepicker.regional['he']); + + return datepicker.regional['he']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-hi.js b/ui/i18n/jquery.ui.datepicker-hi.js index 6c563b997..a1ead70f2 100644 --- a/ui/i18n/jquery.ui.datepicker-hi.js +++ b/ui/i18n/jquery.ui.datepicker-hi.js @@ -1,7 +1,17 @@ /* Hindi initialisation for the jQuery UI date picker plugin. */ /* Written by Michael Dawart. */ -jQuery(function($){ - $.datepicker.regional['hi'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['hi'] = { closeText: 'बंद', prevText: 'पिछला', nextText: 'अगला', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['hi']); -}); + datepicker.setDefaults(datepicker.regional['hi']); + + return datepicker.regional['hi']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-hr.js b/ui/i18n/jquery.ui.datepicker-hr.js index 2fe37b64b..0c83ac23b 100644 --- a/ui/i18n/jquery.ui.datepicker-hr.js +++ b/ui/i18n/jquery.ui.datepicker-hr.js @@ -1,7 +1,17 @@ /* Croatian i18n for the jQuery UI date picker plugin. */ /* Written by Vjekoslav Nesek. */ -jQuery(function($){ - $.datepicker.regional['hr'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['hr'] = { closeText: 'Zatvori', prevText: '<', nextText: '>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['hr']); -}); + datepicker.setDefaults(datepicker.regional['hr']); + + return datepicker.regional['hr']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-hu.js b/ui/i18n/jquery.ui.datepicker-hu.js index b28c268c1..56145a513 100644 --- a/ui/i18n/jquery.ui.datepicker-hu.js +++ b/ui/i18n/jquery.ui.datepicker-hu.js @@ -1,7 +1,17 @@ /* Hungarian initialisation for the jQuery UI date picker plugin. */ -/* Written by Istvan Karaszi (jquery@spam.raszi.hu). */ -jQuery(function($){ - $.datepicker.regional['hu'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "jquery", "../jquery.ui.datepicker" + ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['hu'] = { closeText: 'bezár', prevText: 'vissza', nextText: 'előre', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: true, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['hu']); -}); + datepicker.setDefaults(datepicker.regional['hu']); + + return datepicker.regional['hu']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-hy.js b/ui/i18n/jquery.ui.datepicker-hy.js index 6d4eca555..daa7c3f30 100644 --- a/ui/i18n/jquery.ui.datepicker-hy.js +++ b/ui/i18n/jquery.ui.datepicker-hy.js @@ -1,7 +1,17 @@ /* Armenian(UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Levon Zakaryan (levon.zakaryan@gmail.com)*/ -jQuery(function($){ - $.datepicker.regional['hy'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['hy'] = { closeText: 'Փակել', prevText: '<Նախ.', nextText: 'Հաջ.>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['hy']); -}); + datepicker.setDefaults(datepicker.regional['hy']); + + return datepicker.regional['hy']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-id.js b/ui/i18n/jquery.ui.datepicker-id.js index 6327fa60c..d0b2e2b9d 100644 --- a/ui/i18n/jquery.ui.datepicker-id.js +++ b/ui/i18n/jquery.ui.datepicker-id.js @@ -1,7 +1,17 @@ /* Indonesian initialisation for the jQuery UI date picker plugin. */ /* Written by Deden Fathurahman (dedenf@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['id'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['id'] = { closeText: 'Tutup', prevText: '<mundur', nextText: 'maju>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['id']); -}); + datepicker.setDefaults(datepicker.regional['id']); + + return datepicker.regional['id']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-is.js b/ui/i18n/jquery.ui.datepicker-is.js index 4fc429888..70cf43bc8 100644 --- a/ui/i18n/jquery.ui.datepicker-is.js +++ b/ui/i18n/jquery.ui.datepicker-is.js @@ -1,7 +1,17 @@ /* Icelandic initialisation for the jQuery UI date picker plugin. */ /* Written by Haukur H. Thorsson (haukur@eskill.is). */ -jQuery(function($){ - $.datepicker.regional['is'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['is'] = { closeText: 'Loka', prevText: '< Fyrri', nextText: 'Næsti >', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['is']); -}); + datepicker.setDefaults(datepicker.regional['is']); + + return datepicker.regional['is']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-it-CH.js b/ui/i18n/jquery.ui.datepicker-it-CH.js index f19a56d34..6e193a93d 100644 --- a/ui/i18n/jquery.ui.datepicker-it-CH.js +++ b/ui/i18n/jquery.ui.datepicker-it-CH.js @@ -1,7 +1,17 @@ /* Italian initialisation for the jQuery UI date picker plugin. */ /* Written by Antonello Pasella (antonello.pasella@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['it-CH'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['it-CH'] = { closeText: 'Chiudi', prevText: '<Prec', nextText: 'Succ>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['it-CH']); -}); + datepicker.setDefaults(datepicker.regional['it-CH']); + + return datepicker.regional['it-CH']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-it.js b/ui/i18n/jquery.ui.datepicker-it.js index a01f043f8..5c390207a 100644 --- a/ui/i18n/jquery.ui.datepicker-it.js +++ b/ui/i18n/jquery.ui.datepicker-it.js @@ -1,7 +1,17 @@ /* Italian initialisation for the jQuery UI date picker plugin. */ /* Written by Antonello Pasella (antonello.pasella@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['it'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['it'] = { closeText: 'Chiudi', prevText: '<Prec', nextText: 'Succ>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['it']); -}); + datepicker.setDefaults(datepicker.regional['it']); + + return datepicker.regional['it']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ja.js b/ui/i18n/jquery.ui.datepicker-ja.js index 4d0b63c77..b4dd2ebb4 100644 --- a/ui/i18n/jquery.ui.datepicker-ja.js +++ b/ui/i18n/jquery.ui.datepicker-ja.js @@ -1,7 +1,17 @@ /* Japanese initialisation for the jQuery UI date picker plugin. */ /* Written by Kentaro SATO (kentaro@ranvis.com). */ -jQuery(function($){ - $.datepicker.regional['ja'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ja'] = { closeText: '閉じる', prevText: '<前', nextText: '次>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: true, yearSuffix: '年'}; - $.datepicker.setDefaults($.datepicker.regional['ja']); -}); + datepicker.setDefaults(datepicker.regional['ja']); + + return datepicker.regional['ja']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ka.js b/ui/i18n/jquery.ui.datepicker-ka.js index c10658d79..35b0dc59f 100644 --- a/ui/i18n/jquery.ui.datepicker-ka.js +++ b/ui/i18n/jquery.ui.datepicker-ka.js @@ -1,7 +1,17 @@ /* Georgian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Lado Lomidze (lado.lomidze@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['ka'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ka'] = { closeText: 'დახურვა', prevText: '< წინა', nextText: 'შემდეგი >', @@ -17,5 +27,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ka']); -}); + datepicker.setDefaults(datepicker.regional['ka']); + + return datepicker.regional['ka']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-kk.js b/ui/i18n/jquery.ui.datepicker-kk.js index dcd6a65df..e1d0fc101 100644 --- a/ui/i18n/jquery.ui.datepicker-kk.js +++ b/ui/i18n/jquery.ui.datepicker-kk.js @@ -1,7 +1,17 @@ /* Kazakh (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Dmitriy Karasyov (dmitriy.karasyov@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['kk'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['kk'] = { closeText: 'Жабу', prevText: '<Алдыңғы', nextText: 'Келесі>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['kk']); -}); + datepicker.setDefaults(datepicker.regional['kk']); + + return datepicker.regional['kk']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-km.js b/ui/i18n/jquery.ui.datepicker-km.js index f9c4e3a02..95d924d00 100644 --- a/ui/i18n/jquery.ui.datepicker-km.js +++ b/ui/i18n/jquery.ui.datepicker-km.js @@ -1,7 +1,17 @@ /* Khmer initialisation for the jQuery calendar extension. */ /* Written by Chandara Om (chandara.teacher@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['km'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['km'] = { closeText: 'ធ្វើ​រួច', prevText: 'មុន', nextText: 'បន្ទាប់', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['km']); -}); + datepicker.setDefaults(datepicker.regional['km']); + + return datepicker.regional['km']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ko.js b/ui/i18n/jquery.ui.datepicker-ko.js index af36f3d6b..88a3653c1 100644 --- a/ui/i18n/jquery.ui.datepicker-ko.js +++ b/ui/i18n/jquery.ui.datepicker-ko.js @@ -1,7 +1,17 @@ /* Korean initialisation for the jQuery calendar extension. */ /* Written by DaeKwon Kang (ncrash.dk@gmail.com), Edited by Genie. */ -jQuery(function($){ - $.datepicker.regional['ko'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ko'] = { closeText: '닫기', prevText: '이전달', nextText: '다음달', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: true, yearSuffix: '년'}; - $.datepicker.setDefaults($.datepicker.regional['ko']); -}); + datepicker.setDefaults(datepicker.regional['ko']); + + return datepicker.regional['ko']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ky.js b/ui/i18n/jquery.ui.datepicker-ky.js index d4466b12e..41d42c418 100644 --- a/ui/i18n/jquery.ui.datepicker-ky.js +++ b/ui/i18n/jquery.ui.datepicker-ky.js @@ -1,7 +1,17 @@ /* Kyrgyz (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Sergey Kartashov (ebishkek@yandex.ru). */ -jQuery(function($){ - $.datepicker.regional['ky'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ky'] = { closeText: 'Жабуу', prevText: '<Мур', nextText: 'Кий>', @@ -20,5 +30,8 @@ jQuery(function($){ showMonthAfterYear: false, yearSuffix: '' }; - $.datepicker.setDefaults($.datepicker.regional['ky']); -}); + datepicker.setDefaults(datepicker.regional['ky']); + + return datepicker.regional['ky']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-lb.js b/ui/i18n/jquery.ui.datepicker-lb.js index 87c79d594..46195978d 100644 --- a/ui/i18n/jquery.ui.datepicker-lb.js +++ b/ui/i18n/jquery.ui.datepicker-lb.js @@ -1,7 +1,17 @@ /* Luxembourgish initialisation for the jQuery UI date picker plugin. */ /* Written by Michel Weimerskirch */ -jQuery(function($){ - $.datepicker.regional['lb'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['lb'] = { closeText: 'Fäerdeg', prevText: 'Zréck', nextText: 'Weider', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['lb']); -}); + datepicker.setDefaults(datepicker.regional['lb']); + + return datepicker.regional['lb']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-lt.js b/ui/i18n/jquery.ui.datepicker-lt.js index 54eb523b3..95cb33c6a 100644 --- a/ui/i18n/jquery.ui.datepicker-lt.js +++ b/ui/i18n/jquery.ui.datepicker-lt.js @@ -1,7 +1,17 @@ /* Lithuanian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* @author Arturas Paleicikas */ -jQuery(function($){ - $.datepicker.regional['lt'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['lt'] = { closeText: 'Uždaryti', prevText: '<Atgal', nextText: 'Pirmyn>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: true, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['lt']); -}); + datepicker.setDefaults(datepicker.regional['lt']); + + return datepicker.regional['lt']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-lv.js b/ui/i18n/jquery.ui.datepicker-lv.js index 3fdf8565b..3f0d2ac60 100644 --- a/ui/i18n/jquery.ui.datepicker-lv.js +++ b/ui/i18n/jquery.ui.datepicker-lv.js @@ -1,7 +1,17 @@ /* Latvian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* @author Arturas Paleicikas */ -jQuery(function($){ - $.datepicker.regional['lv'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['lv'] = { closeText: 'Aizvērt', prevText: 'Iepr.', nextText: 'Nāk.', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['lv']); -}); + datepicker.setDefaults(datepicker.regional['lv']); + + return datepicker.regional['lv']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-mk.js b/ui/i18n/jquery.ui.datepicker-mk.js index 028532551..91c94dd5c 100644 --- a/ui/i18n/jquery.ui.datepicker-mk.js +++ b/ui/i18n/jquery.ui.datepicker-mk.js @@ -1,7 +1,17 @@ /* Macedonian i18n for the jQuery UI date picker plugin. */ /* Written by Stojce Slavkovski. */ -jQuery(function($){ - $.datepicker.regional['mk'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['mk'] = { closeText: 'Затвори', prevText: '<', nextText: '>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['mk']); -}); + datepicker.setDefaults(datepicker.regional['mk']); + + return datepicker.regional['mk']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ml.js b/ui/i18n/jquery.ui.datepicker-ml.js index 9b8f460db..17ea3bfff 100644 --- a/ui/i18n/jquery.ui.datepicker-ml.js +++ b/ui/i18n/jquery.ui.datepicker-ml.js @@ -1,7 +1,17 @@ /* Malayalam (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Saji Nediyanchath (saji89@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['ml'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ml'] = { closeText: 'ശരി', prevText: 'മുന്നത്തെ', nextText: 'അടുത്തത് ', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ml']); -}); + datepicker.setDefaults(datepicker.regional['ml']); + + return datepicker.regional['ml']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ms.js b/ui/i18n/jquery.ui.datepicker-ms.js index e70de7299..b1eb4a9e3 100644 --- a/ui/i18n/jquery.ui.datepicker-ms.js +++ b/ui/i18n/jquery.ui.datepicker-ms.js @@ -1,7 +1,17 @@ /* Malaysian initialisation for the jQuery UI date picker plugin. */ /* Written by Mohd Nawawi Mohamad Jamili (nawawi@ronggeng.net). */ -jQuery(function($){ - $.datepicker.regional['ms'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ms'] = { closeText: 'Tutup', prevText: '<Sebelum', nextText: 'Selepas>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ms']); -}); + datepicker.setDefaults(datepicker.regional['ms']); + + return datepicker.regional['ms']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-nb.js b/ui/i18n/jquery.ui.datepicker-nb.js index 845a5052d..61e751cd3 100644 --- a/ui/i18n/jquery.ui.datepicker-nb.js +++ b/ui/i18n/jquery.ui.datepicker-nb.js @@ -1,7 +1,17 @@ /* Norwegian Bokmål initialisation for the jQuery UI date picker plugin. */ /* Written by Bjørn Johansen (post@bjornjohansen.no). */ -jQuery(function($){ - $.datepicker.regional['nb'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['nb'] = { closeText: 'Lukk', prevText: '«Forrige', nextText: 'Neste»', @@ -18,5 +28,8 @@ jQuery(function($){ showMonthAfterYear: false, yearSuffix: '' }; - $.datepicker.setDefaults($.datepicker.regional['nb']); -}); + datepicker.setDefaults(datepicker.regional['nb']); + + return datepicker.regional['nb']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-nl-BE.js b/ui/i18n/jquery.ui.datepicker-nl-BE.js index 7b3cdf425..00666d459 100644 --- a/ui/i18n/jquery.ui.datepicker-nl-BE.js +++ b/ui/i18n/jquery.ui.datepicker-nl-BE.js @@ -1,7 +1,17 @@ /* Dutch (Belgium) initialisation for the jQuery UI date picker plugin. */ /* David De Sloovere @DavidDeSloovere */ -jQuery(function($){ - $.datepicker.regional['nl-BE'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['nl-BE'] = { closeText: 'Sluiten', prevText: '←', nextText: '→', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['nl-BE']); -}); + datepicker.setDefaults(datepicker.regional['nl-BE']); + + return datepicker.regional['nl-BE']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-nl.js b/ui/i18n/jquery.ui.datepicker-nl.js index 203f16069..a16718737 100644 --- a/ui/i18n/jquery.ui.datepicker-nl.js +++ b/ui/i18n/jquery.ui.datepicker-nl.js @@ -1,7 +1,17 @@ /* Dutch (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Mathias Bynens */ -jQuery(function($){ - $.datepicker.regional.nl = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional.nl = { closeText: 'Sluiten', prevText: '←', nextText: '→', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional.nl); -}); + datepicker.setDefaults(datepicker.regional.nl); + + return datepicker.regional.nl; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-nn.js b/ui/i18n/jquery.ui.datepicker-nn.js index b55245ee6..e03916c6f 100644 --- a/ui/i18n/jquery.ui.datepicker-nn.js +++ b/ui/i18n/jquery.ui.datepicker-nn.js @@ -1,7 +1,17 @@ /* Norwegian Nynorsk initialisation for the jQuery UI date picker plugin. */ /* Written by Bjørn Johansen (post@bjornjohansen.no). */ -jQuery(function($){ - $.datepicker.regional['nn'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['nn'] = { closeText: 'Lukk', prevText: '«Førre', nextText: 'Neste»', @@ -18,5 +28,8 @@ jQuery(function($){ showMonthAfterYear: false, yearSuffix: '' }; - $.datepicker.setDefaults($.datepicker.regional['nn']); -}); + datepicker.setDefaults(datepicker.regional['nn']); + + return datepicker.regional['nn']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-no.js b/ui/i18n/jquery.ui.datepicker-no.js index d36e430be..0d99d8584 100644 --- a/ui/i18n/jquery.ui.datepicker-no.js +++ b/ui/i18n/jquery.ui.datepicker-no.js @@ -1,8 +1,18 @@ /* Norwegian initialisation for the jQuery UI date picker plugin. */ /* Written by Naimdjon Takhirov (naimdjon@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['no'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['no'] = { closeText: 'Lukk', prevText: '«Forrige', nextText: 'Neste»', @@ -19,5 +29,8 @@ jQuery(function($){ showMonthAfterYear: false, yearSuffix: '' }; - $.datepicker.setDefaults($.datepicker.regional['no']); -}); + datepicker.setDefaults(datepicker.regional['no']); + + return datepicker.regional['no']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-pl.js b/ui/i18n/jquery.ui.datepicker-pl.js index 0ffc515b9..bea29c356 100644 --- a/ui/i18n/jquery.ui.datepicker-pl.js +++ b/ui/i18n/jquery.ui.datepicker-pl.js @@ -1,7 +1,17 @@ /* Polish initialisation for the jQuery UI date picker plugin. */ /* Written by Jacek Wysocki (jacek.wysocki@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['pl'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['pl'] = { closeText: 'Zamknij', prevText: '<Poprzedni', nextText: 'Następny>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['pl']); -}); + datepicker.setDefaults(datepicker.regional['pl']); + + return datepicker.regional['pl']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-pt-BR.js b/ui/i18n/jquery.ui.datepicker-pt-BR.js index 521967ec3..aa15b5d3b 100644 --- a/ui/i18n/jquery.ui.datepicker-pt-BR.js +++ b/ui/i18n/jquery.ui.datepicker-pt-BR.js @@ -1,7 +1,17 @@ /* Brazilian initialisation for the jQuery UI date picker plugin. */ /* Written by Leonildo Costa Silva (leocsilva@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['pt-BR'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['pt-BR'] = { closeText: 'Fechar', prevText: '<Anterior', nextText: 'Próximo>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['pt-BR']); -}); + datepicker.setDefaults(datepicker.regional['pt-BR']); + + return datepicker.regional['pt-BR']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-pt.js b/ui/i18n/jquery.ui.datepicker-pt.js index 4fb16f032..3be36193e 100644 --- a/ui/i18n/jquery.ui.datepicker-pt.js +++ b/ui/i18n/jquery.ui.datepicker-pt.js @@ -1,6 +1,16 @@ /* Portuguese initialisation for the jQuery UI date picker plugin. */ -jQuery(function($){ - $.datepicker.regional['pt'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['pt'] = { closeText: 'Fechar', prevText: 'Anterior', nextText: 'Seguinte', @@ -18,5 +28,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['pt']); -}); + datepicker.setDefaults(datepicker.regional['pt']); + + return datepicker.regional['pt']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-rm.js b/ui/i18n/jquery.ui.datepicker-rm.js index 22ed21685..8307f5351 100644 --- a/ui/i18n/jquery.ui.datepicker-rm.js +++ b/ui/i18n/jquery.ui.datepicker-rm.js @@ -1,7 +1,17 @@ /* Romansh initialisation for the jQuery UI date picker plugin. */ /* Written by Yvonne Gienal (yvonne.gienal@educa.ch). */ -jQuery(function($){ - $.datepicker.regional['rm'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['rm'] = { closeText: 'Serrar', prevText: '<Suandant', nextText: 'Precedent>', @@ -17,5 +27,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['rm']); -}); + datepicker.setDefaults(datepicker.regional['rm']); + + return datepicker.regional['rm']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ro.js b/ui/i18n/jquery.ui.datepicker-ro.js index a988270d7..6da59c321 100644 --- a/ui/i18n/jquery.ui.datepicker-ro.js +++ b/ui/i18n/jquery.ui.datepicker-ro.js @@ -3,8 +3,18 @@ * Written by Edmond L. (ll_edmond@walla.com) * and Ionut G. Stan (ionut.g.stan@gmail.com) */ -jQuery(function($){ - $.datepicker.regional['ro'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ro'] = { closeText: 'Închide', prevText: '« Luna precedentă', nextText: 'Luna următoare »', @@ -22,5 +32,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ro']); -}); + datepicker.setDefaults(datepicker.regional['ro']); + + return datepicker.regional['ro']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ru.js b/ui/i18n/jquery.ui.datepicker-ru.js index a51971405..267e08e1f 100644 --- a/ui/i18n/jquery.ui.datepicker-ru.js +++ b/ui/i18n/jquery.ui.datepicker-ru.js @@ -1,7 +1,17 @@ /* Russian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Andrew Stromnov (stromnov@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['ru'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ru'] = { closeText: 'Закрыть', prevText: '<Пред', nextText: 'След>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ru']); -}); + datepicker.setDefaults(datepicker.regional['ru']); + + return datepicker.regional['ru']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-sk.js b/ui/i18n/jquery.ui.datepicker-sk.js index 0cb76c4e8..c16f658f6 100644 --- a/ui/i18n/jquery.ui.datepicker-sk.js +++ b/ui/i18n/jquery.ui.datepicker-sk.js @@ -1,7 +1,17 @@ /* Slovak initialisation for the jQuery UI date picker plugin. */ /* Written by Vojtech Rinik (vojto@hmm.sk). */ -jQuery(function($){ - $.datepicker.regional['sk'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['sk'] = { closeText: 'Zavrieť', prevText: '<Predchádzajúci', nextText: 'Nasledujúci>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sk']); -}); + datepicker.setDefaults(datepicker.regional['sk']); + + return datepicker.regional['sk']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-sl.js b/ui/i18n/jquery.ui.datepicker-sl.js index 048a47af7..cb6b45ba3 100644 --- a/ui/i18n/jquery.ui.datepicker-sl.js +++ b/ui/i18n/jquery.ui.datepicker-sl.js @@ -1,8 +1,18 @@ /* Slovenian initialisation for the jQuery UI date picker plugin. */ /* Written by Jaka Jancar (jaka@kubje.org). */ /* c = č, s = š z = ž C = Č S = Š Z = Ž */ -jQuery(function($){ - $.datepicker.regional['sl'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['sl'] = { closeText: 'Zapri', prevText: '<Prejšnji', nextText: 'Naslednji>', @@ -20,5 +30,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sl']); -}); + datepicker.setDefaults(datepicker.regional['sl']); + + return datepicker.regional['sl']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-sq.js b/ui/i18n/jquery.ui.datepicker-sq.js index d6086a789..d0873fa54 100644 --- a/ui/i18n/jquery.ui.datepicker-sq.js +++ b/ui/i18n/jquery.ui.datepicker-sq.js @@ -1,7 +1,17 @@ /* Albanian initialisation for the jQuery UI date picker plugin. */ /* Written by Flakron Bytyqi (flakron@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['sq'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['sq'] = { closeText: 'mbylle', prevText: '<mbrapa', nextText: 'Përpara>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sq']); -}); + datepicker.setDefaults(datepicker.regional['sq']); + + return datepicker.regional['sq']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-sr-SR.js b/ui/i18n/jquery.ui.datepicker-sr-SR.js index 810d21daa..bdf2cd6f4 100644 --- a/ui/i18n/jquery.ui.datepicker-sr-SR.js +++ b/ui/i18n/jquery.ui.datepicker-sr-SR.js @@ -1,7 +1,17 @@ /* Serbian i18n for the jQuery UI date picker plugin. */ /* Written by Dejan Dimić. */ -jQuery(function($){ - $.datepicker.regional['sr-SR'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['sr-SR'] = { closeText: 'Zatvori', prevText: '<', nextText: '>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sr-SR']); -}); + datepicker.setDefaults(datepicker.regional['sr-SR']); + + return datepicker.regional['sr-SR']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-sr.js b/ui/i18n/jquery.ui.datepicker-sr.js index 1349a26cf..9576c45ef 100644 --- a/ui/i18n/jquery.ui.datepicker-sr.js +++ b/ui/i18n/jquery.ui.datepicker-sr.js @@ -1,7 +1,17 @@ /* Serbian i18n for the jQuery UI date picker plugin. */ /* Written by Dejan Dimić. */ -jQuery(function($){ - $.datepicker.regional['sr'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['sr'] = { closeText: 'Затвори', prevText: '<', nextText: '>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sr']); -}); + datepicker.setDefaults(datepicker.regional['sr']); + + return datepicker.regional['sr']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-sv.js b/ui/i18n/jquery.ui.datepicker-sv.js index cbb5ad135..9988a2382 100644 --- a/ui/i18n/jquery.ui.datepicker-sv.js +++ b/ui/i18n/jquery.ui.datepicker-sv.js @@ -1,7 +1,17 @@ /* Swedish initialisation for the jQuery UI date picker plugin. */ /* Written by Anders Ekdahl ( anders@nomadiz.se). */ -jQuery(function($){ - $.datepicker.regional['sv'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['sv'] = { closeText: 'Stäng', prevText: '«Förra', nextText: 'Nästa»', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['sv']); -}); + datepicker.setDefaults(datepicker.regional['sv']); + + return datepicker.regional['sv']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-ta.js b/ui/i18n/jquery.ui.datepicker-ta.js index 40431ed8e..762b61ebe 100644 --- a/ui/i18n/jquery.ui.datepicker-ta.js +++ b/ui/i18n/jquery.ui.datepicker-ta.js @@ -1,7 +1,17 @@ /* Tamil (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by S A Sureshkumar (saskumar@live.com). */ -jQuery(function($){ - $.datepicker.regional['ta'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['ta'] = { closeText: 'மூடு', prevText: 'முன்னையது', nextText: 'அடுத்தது', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['ta']); -}); + datepicker.setDefaults(datepicker.regional['ta']); + + return datepicker.regional['ta']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-th.js b/ui/i18n/jquery.ui.datepicker-th.js index aecfd27cc..92bb78579 100644 --- a/ui/i18n/jquery.ui.datepicker-th.js +++ b/ui/i18n/jquery.ui.datepicker-th.js @@ -1,7 +1,17 @@ /* Thai initialisation for the jQuery UI date picker plugin. */ /* Written by pipo (pipo@sixhead.com). */ -jQuery(function($){ - $.datepicker.regional['th'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['th'] = { closeText: 'ปิด', prevText: '« ย้อน', nextText: 'ถัดไป »', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['th']); -}); + datepicker.setDefaults(datepicker.regional['th']); + + return datepicker.regional['th']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-tj.js b/ui/i18n/jquery.ui.datepicker-tj.js index 9a20e4d37..993203440 100644 --- a/ui/i18n/jquery.ui.datepicker-tj.js +++ b/ui/i18n/jquery.ui.datepicker-tj.js @@ -1,7 +1,17 @@ /* Tajiki (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Abdurahmon Saidov (saidovab@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['tj'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['tj'] = { closeText: 'Идома', prevText: '<Қафо', nextText: 'Пеш>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['tj']); -}); + datepicker.setDefaults(datepicker.regional['tj']); + + return datepicker.regional['tj']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-tr.js b/ui/i18n/jquery.ui.datepicker-tr.js index 75b583a77..37ed9e31b 100644 --- a/ui/i18n/jquery.ui.datepicker-tr.js +++ b/ui/i18n/jquery.ui.datepicker-tr.js @@ -1,7 +1,17 @@ /* Turkish initialisation for the jQuery UI date picker plugin. */ /* Written by Izzet Emre Erkan (kara@karalamalar.net). */ -jQuery(function($){ - $.datepicker.regional['tr'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['tr'] = { closeText: 'kapat', prevText: '<geri', nextText: 'ileri>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['tr']); -}); + datepicker.setDefaults(datepicker.regional['tr']); + + return datepicker.regional['tr']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-uk.js b/ui/i18n/jquery.ui.datepicker-uk.js index 2bdc82ff7..4ab8620c3 100644 --- a/ui/i18n/jquery.ui.datepicker-uk.js +++ b/ui/i18n/jquery.ui.datepicker-uk.js @@ -1,8 +1,18 @@ /* Ukrainian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Maxim Drogobitskiy (maxdao@gmail.com). */ /* Corrected by Igor Milla (igor.fsp.milla@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['uk'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['uk'] = { closeText: 'Закрити', prevText: '<', nextText: '>', @@ -20,5 +30,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['uk']); -}); + datepicker.setDefaults(datepicker.regional['uk']); + + return datepicker.regional['uk']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-vi.js b/ui/i18n/jquery.ui.datepicker-vi.js index b49e7eb13..4a7ad41bc 100644 --- a/ui/i18n/jquery.ui.datepicker-vi.js +++ b/ui/i18n/jquery.ui.datepicker-vi.js @@ -1,7 +1,17 @@ /* Vietnamese initialisation for the jQuery UI date picker plugin. */ /* Translated by Le Thanh Huy (lthanhhuy@cit.ctu.edu.vn). */ -jQuery(function($){ - $.datepicker.regional['vi'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['vi'] = { closeText: 'Đóng', prevText: '<Trước', nextText: 'Tiếp>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['vi']); -}); + datepicker.setDefaults(datepicker.regional['vi']); + + return datepicker.regional['vi']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-zh-CN.js b/ui/i18n/jquery.ui.datepicker-zh-CN.js index d337e4a99..97b065b37 100644 --- a/ui/i18n/jquery.ui.datepicker-zh-CN.js +++ b/ui/i18n/jquery.ui.datepicker-zh-CN.js @@ -1,7 +1,17 @@ /* Chinese initialisation for the jQuery UI date picker plugin. */ /* Written by Cloudream (cloudream@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['zh-CN'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['zh-CN'] = { closeText: '关闭', prevText: '<上月', nextText: '下月>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: true, yearSuffix: '年'}; - $.datepicker.setDefaults($.datepicker.regional['zh-CN']); -}); + datepicker.setDefaults(datepicker.regional['zh-CN']); + + return datepicker.regional['zh-CN']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-zh-HK.js b/ui/i18n/jquery.ui.datepicker-zh-HK.js index ef6f4e715..a262b2319 100644 --- a/ui/i18n/jquery.ui.datepicker-zh-HK.js +++ b/ui/i18n/jquery.ui.datepicker-zh-HK.js @@ -1,7 +1,17 @@ /* Chinese initialisation for the jQuery UI date picker plugin. */ /* Written by SCCY (samuelcychan@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['zh-HK'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['zh-HK'] = { closeText: '關閉', prevText: '<上月', nextText: '下月>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: true, yearSuffix: '年'}; - $.datepicker.setDefaults($.datepicker.regional['zh-HK']); -}); + datepicker.setDefaults(datepicker.regional['zh-HK']); + + return datepicker.regional['zh-HK']; + +})); diff --git a/ui/i18n/jquery.ui.datepicker-zh-TW.js b/ui/i18n/jquery.ui.datepicker-zh-TW.js index b9105ea50..ebfd73ac5 100644 --- a/ui/i18n/jquery.ui.datepicker-zh-TW.js +++ b/ui/i18n/jquery.ui.datepicker-zh-TW.js @@ -1,7 +1,17 @@ /* Chinese initialisation for the jQuery UI date picker plugin. */ /* Written by Ressol (ressol@gmail.com). */ -jQuery(function($){ - $.datepicker.regional['zh-TW'] = { +(function( factory ) { + if ( typeof define === "function" && define.amd ) { + + // AMD. Register as an anonymous module. + define([ "../jquery.ui.datepicker" ], factory ); + } else { + + // Browser globals + factory( jQuery.datepicker ); + } +}(function( datepicker ) { + datepicker.regional['zh-TW'] = { closeText: '關閉', prevText: '<上月', nextText: '下月>', @@ -19,5 +29,8 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: true, yearSuffix: '年'}; - $.datepicker.setDefaults($.datepicker.regional['zh-TW']); -}); + datepicker.setDefaults(datepicker.regional['zh-TW']); + + return datepicker.regional['zh-TW']; + +}));