2008-06-04 02:34:33 +00:00
|
|
|
/* Brazilian initialisation for the jQuery UI date picker plugin. */
|
|
|
|
/* Written by Leonildo Costa Silva (leocsilva@gmail.com). */
|
2013-07-17 15:10:30 +00:00
|
|
|
(function( factory ) {
|
|
|
|
if ( typeof define === "function" && define.amd ) {
|
|
|
|
|
|
|
|
// AMD. Register as an anonymous module.
|
2013-12-02 18:36:12 +00:00
|
|
|
define([ "../datepicker" ], factory );
|
2013-07-17 15:10:30 +00:00
|
|
|
} else {
|
|
|
|
|
|
|
|
// Browser globals
|
|
|
|
factory( jQuery.datepicker );
|
|
|
|
}
|
|
|
|
}(function( datepicker ) {
|
|
|
|
datepicker.regional['pt-BR'] = {
|
2009-01-04 18:11:41 +00:00
|
|
|
closeText: 'Fechar',
|
2011-02-19 14:54:15 +00:00
|
|
|
prevText: '<Anterior',
|
2012-08-24 01:25:00 +00:00
|
|
|
nextText: 'Próximo>',
|
2009-01-04 18:11:41 +00:00
|
|
|
currentText: 'Hoje',
|
2012-08-24 01:25:00 +00:00
|
|
|
monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho',
|
2008-06-04 02:34:33 +00:00
|
|
|
'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
|
|
|
|
monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun',
|
|
|
|
'Jul','Ago','Set','Out','Nov','Dez'],
|
2012-08-24 01:25:00 +00:00
|
|
|
dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'],
|
|
|
|
dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
|
|
|
|
dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
|
2009-07-29 08:33:33 +00:00
|
|
|
weekHeader: 'Sm',
|
2009-04-01 10:34:16 +00:00
|
|
|
dateFormat: 'dd/mm/yy',
|
|
|
|
firstDay: 0,
|
|
|
|
isRTL: false,
|
|
|
|
showMonthAfterYear: false,
|
|
|
|
yearSuffix: ''};
|
2013-07-17 15:10:30 +00:00
|
|
|
datepicker.setDefaults(datepicker.regional['pt-BR']);
|
|
|
|
|
|
|
|
return datepicker.regional['pt-BR'];
|
|
|
|
|
|
|
|
}));
|