X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/locale/ext-lang-pt.js diff --git a/locale/ext-lang-pt.js b/locale/ext-lang-pt.js new file mode 100644 index 00000000..9643dc31 --- /dev/null +++ b/locale/ext-lang-pt.js @@ -0,0 +1,264 @@ +/** + * Portuguese/Brazil Translation by Weber Souza + * 08 April 2007 + * Updated by Allan Brazute Alves (EthraZa) + * 06 September 2007 + * Adapted to European Portuguese by Helder Batista (hbatista) + * 31 January 2008 + */ +Ext.onReady(function() { +if(Ext.Updater){ + Ext.Updater.defaults.indicatorText = '
Carregando...
'; +} + +if(Ext.view.View){ + Ext.view.View.prototype.emptyText = ""; +} + +if(Ext.grid.Panel){ + Ext.grid.Panel.prototype.ddText = "{0} linha(s) seleccionada(s)"; +} + +if(Ext.TabPanelItem){ + Ext.TabPanelItem.prototype.closeText = "Fechar"; +} + +if(Ext.form.field.Base){ + Ext.form.field.Base.prototype.invalidText = "O valor para este campo é inválido"; +} + +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.dayNames = [ + "Domingo", + "Segunda", + "Terça", + "Quarta", + "Quinta", + "Sexta", + "Sábado" + ]; +} +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: '\u20ac', // Portugese Euro + dateFormat: 'd/m/Y' + }); +} + +if(Ext.picker.Date){ + Ext.apply(Ext.picker.Date.prototype, { + todayText : "Hoje", + minText : "Esta data é anterior à menor data", + maxText : "Esta data é posterior à 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.Paging){ + 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 : "{0} à {1} de {2} registo(s)", + emptyMsg : 'Sem registos para exibir' + }); +} + +if(Ext.form.field.Text){ + Ext.apply(Ext.form.field.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.field.Number){ + Ext.apply(Ext.form.field.Number.prototype, { + 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.field.Date){ + Ext.apply(Ext.form.field.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 usado o formato {1}", + format : "d/m/Y" + }); +} + +if(Ext.form.field.ComboBox){ + Ext.apply(Ext.form.field.ComboBox.prototype, { + loadingText : "Carregando...", + valueNotFoundText : undefined + }); +} + +if(Ext.form.field.VTypes){ + Ext.apply(Ext.form.field.VTypes, { + emailText : 'Este campo deve ser um endereço de e-mail válido, no formato "utilizador@dominio.com"', + urlText : 'Este campo deve ser um URL no formato "http:/'+'/www.dominio.com"', + alphaText : 'Este campo deve conter apenas letras e _', + alphanumText : 'Este campo deve conter apenas letras, números e _' + }); +} + +if(Ext.form.field.HtmlEditor){ + Ext.apply(Ext.form.field.HtmlEditor.prototype, { + createLinkText : 'Por favor, entre com o URL do link:', + buttonTips : { + bold : { + title: 'Negrito (Ctrl+B)', + text: 'Deixa o texto seleccionado em negrito.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + italic : { + title: 'Italico (Ctrl+I)', + text: 'Deixa o texto seleccionado em italico.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + underline : { + title: 'Sublinhado (Ctrl+U)', + text: 'Sublinha o texto seleccionado.', + 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 seleccionado.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + forecolor : { + title: 'Cor da Fonte', + text: 'Muda a cor do texto seleccionado.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + justifyleft : { + title: 'Alinhar à Esquerda', + text: 'Alinha o texto à esquerda.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + justifycenter : { + title: 'Centrar Texto', + text: 'Centra 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: 'Hyperligação', + text: 'Transforma o texto selecionado num hyperlink.', + 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.header.Container){ + Ext.apply(Ext.grid.header.Container.prototype, { + sortAscText : "Ordem Ascendente", + sortDescText : "Ordem Descendente", + lockText : "Bloquear Coluna", + unlockText : "Desbloquear Coluna", + columnsText : "Colunas" + }); +} + +if(Ext.grid.PropertyColumnModel){ + Ext.apply(Ext.grid.PropertyColumnModel.prototype, { + nameText : "Nome", + valueText : "Valor", + dateFormat : "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." + }); +} +}); \ No newline at end of file