Created
July 3, 2015 21:34
-
-
Save Senhordim/33d89e517968afd975f8 to your computer and use it in GitHub Desktop.
Datepicker pt-BR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Brazilian initialisation for the jQuery UI date picker plugin. */ | |
/* Written by Leonildo Costa Silva (leocsilva@gmail.com). */ | |
$(function($){ | |
$.datepicker.regional['pt-BR'] = { | |
closeText: 'Fechar', | |
prevText: '<Anterior', | |
nextText: 'Próximo>', | |
currentText: 'Hoje', | |
monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho', | |
'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'], | |
monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun', | |
'Jul','Ago','Set','Out','Nov','Dez'], | |
dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sabado'], | |
dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sab'], | |
dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sab'], | |
weekHeader: 'Sm', | |
dateFormat: 'dd/mm/yy', | |
firstDay: 0, | |
isRTL: false, | |
showMonthAfterYear: false, | |
yearSuffix: ''}; | |
$.datepicker.setDefaults($.datepicker.regional['pt-BR']); | |
}); | |
/* Brazilian Portuguese translation for the jQuery Timepicker Addon */ | |
/* Written by Diogo Damiani (diogodamiani@gmail.com) */ | |
$(function ($) { | |
$.timepicker.regional['pt-BR'] = { | |
timeOnlyTitle: 'Escolha o horário', | |
timeText: 'Horário', | |
hourText: 'Hora', | |
minuteText: 'Minutos', | |
secondText: 'Segundos', | |
millisecText: 'Milissegundos', | |
microsecText: 'Microssegundos', | |
timezoneText: 'Fuso horário', | |
currentText: 'Agora', | |
closeText: 'Fechar', | |
timeFormat: 'HH:mm', | |
amNames: ['a.m.', 'AM', 'A'], | |
pmNames: ['p.m.', 'PM', 'P'], | |
isRTL: false | |
}; | |
$.timepicker.setDefaults($.timepicker.regional['pt-BR']); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment