Created
April 8, 2011 01:12
-
-
Save loiane/909123 to your computer and use it in GitHub Desktop.
Tradução Ext 4 para PT-BR
This file contains hidden or 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
/** | |
* Portuguese/Brazil Translation by Weber Souza | |
* 08 April 2007 | |
* Updated by Allan Brazute Alves (EthraZa) | |
* 06 September 2007 | |
* Updated by Leonardo Lima | |
* 05 March 2008 | |
* Updated by Juliano Tarini (jtarini) | |
* 22 April 2008 | |
* Updated by Matheus G Bombonato (Nom4d3) | |
* 05 April 2011 | |
*/ | |
Ext.onReady(function() { | |
if (Ext.Updater) { | |
Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">Carregando...</div>'; | |
} | |
if(Ext.data.Types){ | |
Ext.data.Types.stripRe = /[\$,%]/g; | |
} | |
if(Ext.DataView){ | |
Ext.DataView.prototype.emptyText = ""; | |
} | |
if(Ext.grid.GridPanel){ | |
Ext.grid.GridPanel.prototype.ddText = "{0} linha{1} selecionada{1}"; | |
} | |
if(Ext.LoadMask){ | |
Ext.LoadMask.prototype.msg = "Carregando..."; | |
} | |
if(Ext.Date) { | |
Ext.Date.monthNames = [ | |
"Janeiro", | |
"Fevereiro", | |
"Março", | |
"Abril", | |
"Maio", | |
"Junho", | |
"Julho", | |
"Agosto", | |
"Setembro", | |
"Outubro", | |
"Novembro", | |
"Dezembro" | |
]; | |
Ext.Date.getShortMonthName = function(month) { | |
return Ext.Date.monthNames[month].substring(0, 3); | |
}; | |
Ext.Date.monthNumbers = { | |
Jan : 0, | |
Fev : 1, | |
Mar : 2, | |
Abr : 3, | |
Mai : 4, | |
Jun : 5, | |
Jul : 6, | |
Ago : 7, | |
Set : 8, | |
Out : 9, | |
Nov : 10, | |
Dez : 11 | |
}; | |
Ext.Date.getMonthNumber = function(name) { | |
return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()]; | |
}; | |
Ext.Date.dayNames = [ | |
"Domingo", | |
"Segunda", | |
"Terça", | |
"Quarta", | |
"Quinta", | |
"Sexta", | |
"Sábado" | |
]; | |
Ext.Date.getShortDayName = function(day) { | |
return Ext.Date.dayNames[day].substring(0, 3); | |
}; | |
Ext.Date.parseCodes.S.s = "(?:st|nd|rd|th)"; | |
} | |
if(Ext.MessageBox){ | |
Ext.MessageBox.buttonText = { | |
ok : "OK", | |
cancel : "Cancelar", | |
yes : "Sim", | |
no : "Não" | |
}; | |
} | |
if(Ext.util.Format){ | |
Ext.apply(Ext.util.Format, { | |
thousandSeparator: ',', | |
decimalSeparator: '.', | |
currencySign: 'R$', | |
dateFormat: 'd/m/Y' | |
}); | |
Ext.util.Format.brMoney = Ext.util.Format.currency; | |
} | |
if(Ext.picker.Date){ | |
Ext.apply(Ext.picker.Date.prototype, { | |
todayText : "Hoje", | |
minText : "Esta data é anterior a menor data", | |
maxText : "Esta data é posterior a maior data", | |
disabledDaysText : "", | |
disabledDatesText : "", | |
monthNames : Ext.Date.monthNames, | |
dayNames : Ext.Date.dayNames, | |
nextText : 'Próximo Mês (Control+Direita)', | |
prevText : 'Mês Anterior (Control+Esquerda)', | |
monthYearText : 'Escolha um Mês (Control+Cima/Baixo para mover entre os anos)', | |
todayTip : "{0} (Espaço)", | |
format : "d/m/Y", | |
startDay : 0 | |
}); | |
} | |
if(Ext.picker.Month) { | |
Ext.apply(Ext.picker.Month.prototype, { | |
okText : " OK ", | |
cancelText : "Cancelar" | |
}); | |
} | |
if(Ext.toolbar.PagingToolbar){ | |
Ext.apply(Ext.PagingToolbar.prototype, { | |
beforePageText : "Página", | |
afterPageText : "de {0}", | |
firstText : "Primeira Página", | |
prevText : "Página Anterior", | |
nextText : "Próxima Página", | |
lastText : "Última Página", | |
refreshText : "Atualizar", | |
displayMsg : "<b>{0} à {1} de {2} registro(s)</b>", | |
emptyMsg : 'Sem registros para exibir' | |
}); | |
} | |
if(Ext.form.Basic){ | |
Ext.form.Basic.prototype.waitTitle = "Carregando..."; | |
} | |
if(Ext.form.BaseField){ | |
Ext.form.BaseField.prototype.invalidText = "O valor desse campo é inválido"; | |
} | |
if(Ext.form.Text){ | |
Ext.apply(Ext.form.Text.prototype, { | |
minLengthText : "O tamanho mínimo para este campo é {0}", | |
maxLengthText : "O tamanho máximo para este campo é {0}", | |
blankText : "Este campo é obrigatório.", | |
regexText : "", | |
emptyText : null | |
}); | |
} | |
if(Ext.form.Number){ | |
Ext.apply(Ext.form.Number.prototype, { | |
decimalSeparator : ".", | |
decimalPrecision : 2, | |
minText : "O valor mínimo para este campo é {0}", | |
maxText : "O valor máximo para este campo é {0}", | |
nanText : "{0} não é um número válido" | |
}); | |
} | |
if(Ext.form.Date){ | |
Ext.apply(Ext.form.Date.prototype, { | |
disabledDaysText : "Desabilitado", | |
disabledDatesText : "Desabilitado", | |
minText : "A data deste campo deve ser posterior a {0}", | |
maxText : "A data deste campo deve ser anterior a {0}", | |
invalidText : "{0} não é uma data válida - deve ser informado no formato {1}", | |
format : "d/m/Y", | |
altFormats : "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d" | |
}); | |
} | |
if(Ext.form.ComboBox){ | |
Ext.apply(Ext.form.ComboBox.prototype, { | |
loadingText : "Carregando...", | |
valueNotFoundText : undefined | |
}); | |
} | |
if(Ext.form.VTypes){ | |
Ext.apply(Ext.form.VTypes, { | |
emailText : 'Este campo deve ser um endereço de e-mail válido, no formato "[email protected]"', | |
urlText : 'Este campo deve ser uma URL no formato "http:/'+'/www.dominio.com.br"', | |
alphaText : 'Este campo deve conter apenas letras e _', | |
alphanumText : 'Este campo deve conter apenas letras, números e _' | |
}); | |
} | |
if(Ext.form.HtmlEditor){ | |
Ext.apply(Ext.form.HtmlEditor.prototype, { | |
createLinkText : 'Por favor, entre com a URL do link:', | |
buttonTips : { | |
bold : { | |
title: 'Negrito (Ctrl+B)', | |
text: 'Deixa o texto selecionado em negrito.', | |
cls: Ext.baseCSSPrefix + 'html-editor-tip' | |
}, | |
italic : { | |
title: 'Itálico (Ctrl+I)', | |
text: 'Deixa o texto selecionado em itálico.', | |
cls: Ext.baseCSSPrefix + 'html-editor-tip' | |
}, | |
underline : { | |
title: 'Sublinhado (Ctrl+U)', | |
text: 'Sublinha o texto selecionado.', | |
cls: Ext.baseCSSPrefix + 'html-editor-tip' | |
}, | |
increasefontsize : { | |
title: 'Aumentar Texto', | |
text: 'Aumenta o tamanho da fonte.', | |
cls: Ext.baseCSSPrefix + 'html-editor-tip' | |
}, | |
decreasefontsize : { | |
title: 'Diminuir Texto', | |
text: 'Diminui o tamanho da fonte.', | |
cls: Ext.baseCSSPrefix + 'html-editor-tip' | |
}, | |
backcolor : { | |
title: 'Cor de Fundo', | |
text: 'Muda a cor do fundo do texto selecionado.', | |
cls: Ext.baseCSSPrefix + 'html-editor-tip' | |
}, | |
forecolor : { | |
title: 'Cor da Fonte', | |
text: 'Muda a cor do texto selecionado.', | |
cls: Ext.baseCSSPrefix + 'html-editor-tip' | |
}, | |
justifyleft : { | |
title: 'Alinhar à Esquerda', | |
text: 'Alinha o texto à esquerda.', | |
cls: Ext.baseCSSPrefix + 'html-editor-tip' | |
}, | |
justifycenter : { | |
title: 'Centralizar Texto', | |
text: 'Centraliza o texto no editor.', | |
cls: Ext.baseCSSPrefix + 'html-editor-tip' | |
}, | |
justifyright : { | |
title: 'Alinhar à Direita', | |
text: 'Alinha o texto à direita.', | |
cls: Ext.baseCSSPrefix + 'html-editor-tip' | |
}, | |
insertunorderedlist : { | |
title: 'Lista com Marcadores', | |
text: 'Inicia uma lista com marcadores.', | |
cls: Ext.baseCSSPrefix + 'html-editor-tip' | |
}, | |
insertorderedlist : { | |
title: 'Lista Numerada', | |
text: 'Inicia uma lista numerada.', | |
cls: Ext.baseCSSPrefix + 'html-editor-tip' | |
}, | |
createlink : { | |
title: 'Link', | |
text: 'Transforma o texto selecionado em um link.', | |
cls: Ext.baseCSSPrefix + 'html-editor-tip' | |
}, | |
sourceedit : { | |
title: 'Editar Fonte', | |
text: 'Troca para o modo de edição de código fonte.', | |
cls: Ext.baseCSSPrefix + 'html-editor-tip' | |
} | |
} | |
}); | |
} | |
if(Ext.grid.HeaderContainer){ | |
Ext.apply(Ext.grid.HeaderContainer.prototype, { | |
sortAscText : "Ordem Ascendente", | |
sortDescText : "Ordem Descendente", | |
columnsText : "Colunas" | |
}); | |
} | |
if(Ext.grid.GroupingFeature){ | |
Ext.apply(Ext.grid.GroupingFeature.prototype, { | |
emptyGroupText : '(Nenhum)', | |
groupByText : 'Agrupar Por Esse Campo', | |
showGroupsText : 'Exibir em Grupos' | |
}); | |
} | |
if(Ext.grid.PropertyColumnModel){ | |
Ext.apply(Ext.grid.PropertyColumnModel.prototype, { | |
nameText : "Nome", | |
valueText : "Valor", | |
dateFormat : "d/m/Y", | |
trueText : "verdadeiro", | |
falseText : "falso" | |
}); | |
} | |
if(Ext.grid.BooleanColumn){ | |
Ext.apply(Ext.grid.BooleanColumn.prototype, { | |
trueText : "verdadeiro", | |
falseText : "falso", | |
undefinedText: ' ' | |
}); | |
} | |
if(Ext.grid.NumberColumn){ | |
Ext.apply(Ext.grid.NumberColumn.prototype, { | |
format : '0.000,00' | |
}); | |
} | |
if(Ext.grid.DateColumn){ | |
Ext.apply(Ext.grid.DateColumn.prototype, { | |
format : 'd/m/Y' | |
}); | |
} | |
if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){ | |
Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, { | |
splitTip : "Arraste para redimensionar.", | |
collapsibleSplitTip : "Arraste para redimensionar. Duplo clique para esconder." | |
}); | |
} | |
if(Ext.form.Time){ | |
Ext.apply(Ext.form.Time.prototype, { | |
minText : "O horário desse campo deve ser igual ou maior que {0}", | |
maxText : "O horário desse campo deve ser igual ou menor que {0}", | |
invalidText : "{0} não é um horário válido", | |
format : "H:i", | |
altFormats : "g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H" | |
}); | |
} | |
if(Ext.form.CheckboxGroup){ | |
Ext.apply(Ext.form.CheckboxGroup.prototype, { | |
blankText : "Você deve selecionar ao menos um item desse grupo" | |
}); | |
} | |
if(Ext.form.RadioGroup){ | |
Ext.apply(Ext.form.RadioGroup.prototype, { | |
blankText : "Você deve selecionar ao menos um item desse grupo" | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment