Skip to content

Commit

Permalink
All: Wrap I18n files with UMD return exports
Browse files Browse the repository at this point in the history
Ref #9464
Ref jquerygh-1029
  • Loading branch information
rxaviers committed Jan 24, 2014
1 parent 96e027e commit 1216e2a
Show file tree
Hide file tree
Showing 78 changed files with 1,328 additions and 314 deletions.
21 changes: 17 additions & 4 deletions demos/datepicker/jquery.ui.datepicker-ar.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
/* Arabic Translation for jQuery UI date picker plugin. */
/* Khaled Alhourani -- [email protected] */
/* 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: 'التالي>',
Expand All @@ -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'];

}));
21 changes: 17 additions & 4 deletions demos/datepicker/jquery.ui.datepicker-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@
/* Written by Keith Wood (kbwood{at}iinet.com.au),
Stéphane Nahmani ([email protected]),
Stéphane Raimbault <[email protected]> */
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',
Expand All @@ -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'];

}));
21 changes: 17 additions & 4 deletions demos/datepicker/jquery.ui.datepicker-he.js
Original file line number Diff line number Diff line change
@@ -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: '&#x3C;הקודם',
nextText: 'הבא&#x3E;',
Expand All @@ -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'];

}));
21 changes: 17 additions & 4 deletions demos/datepicker/jquery.ui.datepicker-zh-TW.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
/* Chinese initialisation for the jQuery UI date picker plugin. */
/* Written by Ressol ([email protected]). */
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: '&#x3C;上月',
nextText: '下月&#x3E;',
Expand All @@ -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'];

}));
21 changes: 17 additions & 4 deletions ui/i18n/jquery.ui.datepicker-af.js
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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'];

}));
21 changes: 17 additions & 4 deletions ui/i18n/jquery.ui.datepicker-ar-DZ.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
/* Algerian Arabic Translation for jQuery UI date picker plugin. (can be used for Tunisia)*/
/* Mohamed Cherif BOUCHELAGHEM -- [email protected] */

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: '&#x3C;السابق',
nextText: 'التالي&#x3E;',
Expand All @@ -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'];

}));
21 changes: 17 additions & 4 deletions ui/i18n/jquery.ui.datepicker-ar.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
/* Arabic Translation for jQuery UI date picker plugin. */
/* Khaled Alhourani -- [email protected] */
/* 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: '&#x3C;السابق',
nextText: 'التالي&#x3E;',
Expand All @@ -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'];

}));
21 changes: 17 additions & 4 deletions ui/i18n/jquery.ui.datepicker-az.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
/* Azerbaijani (UTF-8) initialisation for the jQuery UI date picker plugin. */
/* Written by Jamil Najafov ([email protected]). */
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: '&#x3C;Geri',
nextText: 'İrəli&#x3E;',
Expand All @@ -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'];

}));
21 changes: 17 additions & 4 deletions ui/i18n/jquery.ui.datepicker-be.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
/* Belarusian initialisation for the jQuery UI date picker plugin. */
/* Written by Pavel Selitskas <[email protected]> */
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: '&larr;Папяр.',
nextText: 'Наст.&rarr;',
Expand All @@ -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'];

}));
21 changes: 17 additions & 4 deletions ui/i18n/jquery.ui.datepicker-bg.js
Original file line number Diff line number Diff line change
@@ -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: '&#x3C;назад',
nextText: 'напред&#x3E;',
Expand All @@ -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'];

}));
21 changes: 17 additions & 4 deletions ui/i18n/jquery.ui.datepicker-bs.js
Original file line number Diff line number Diff line change
@@ -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: '&#x3C;',
nextText: '&#x3E;',
Expand All @@ -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'];

}));
21 changes: 17 additions & 4 deletions ui/i18n/jquery.ui.datepicker-ca.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
/* Inicialització en català per a l'extensió 'UI date picker' per jQuery. */
/* Writers: ([email protected]). */
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',
Expand All @@ -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'];

}));
Loading

0 comments on commit 1216e2a

Please sign in to comment.