Skip to content

Instantly share code, notes, and snippets.

@nosrednawall
Created June 4, 2018 12:53
Show Gist options
  • Save nosrednawall/289af11fe4b529b2c8728e574d2d4c6b to your computer and use it in GitHub Desktop.
Save nosrednawall/289af11fe4b529b2c8728e574d2d4c6b to your computer and use it in GitHub Desktop.
locate pt_BR primefaces
<h:head>
<h:outputScript library="js" name="locale-primefaces.js"/>
</h:head>
<p:outputLabel value="Data Nascimento" for="dataNacimento" />
<p:calendar id="dataNacimento"
value="#{seuBean.entidade.dataNascimento}"
showOn="button"
pattern="dd-MM-yyyy"
navigator="true"
locale="pt_BR"
/>
PrimeFaces.locales['pt_BR'] = {
closeText : 'Fechar',
prevText : 'Anterior',
nextText : 'Próximo',
currentText : 'Começo',
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', 'Terça', 'Quarta', 'Quinta', 'Sexta',
'Sábado' ],
dayNamesShort : [ 'Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sáb' ],
dayNamesMin : [ 'D', 'S', 'T', 'Q', 'Q', 'S', 'S' ],
weekHeader : 'Semana',
firstDay : 1,
isRTL : false,
showMonthAfterYear : false,
yearSuffix : '',
timeOnlyTitle : 'Só Horas',
timeText : 'Tempo',
hourText : 'Hora',
minuteText : 'Minuto',
secondText : 'Segundo',
currentText : 'Data Atual',
ampm : false,
month : 'Mês',
week : 'Semana',
day : 'Dia',
allDayText : 'Todo Dia'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment