Hi! I put the script in this location at my Master page (template.xhtml) and didn't work.
<?xml version='1.0' encoding='ISO-8859-1' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:ui="
http://java.sun.com/jsf/facelets" xmlns:h="
http://java.sun.com/jsf/html" xmlns:f="
http://java.sun.com/jsf/core" xmlns:p="
http://primefaces.prime.com.tr/ui" >
<f:view contentType="text/html" locale="pt_BR">
<h:head>
<script type="text/javascript">
PrimeFaces?.locales'pt'? = {
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: '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'
};
</script>
</h:head>
.....
Then i put the code into my child page and didn't work too. Please Help me.
<ui:composition xmlns="
http://www.w3.org/1999/xhtml"
xmlns:ui="
http://java.sun.com/jsf/facelets" xmlns:p="
http://primefaces.prime.com.tr/ui" xmlns:h="
http://java.sun.com/jsf/html" xmlns:f="
http://java.sun.com/jsf/core" template="/pages/menu/template.xhtml"> <h:head>
<script type="text/javascript">
PrimeFaces?.locales'pt'? = {
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: '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'
};
</script>
</h:head>
<ui:define name="body">
.....