2 * Portuguese/Brazil Translation by Weber Souza
4 * Updated by Allan Brazute Alves (EthraZa)
6 * Updated by Leonardo Lima
8 * Updated by Juliano Tarini (jtarini)
12 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Carregando...</div>';
15 Ext.View.prototype.emptyText = "";
18 if(Ext.grid.GridPanel){
19 Ext.grid.GridPanel.prototype.ddText = "{0} linha(s) selecionada(s)";
23 Ext.TabPanelItem.prototype.closeText = "Fechar";
27 Ext.form.Field.prototype.invalidText = "O valor para este campo é inválido";
31 Ext.LoadMask.prototype.msg = "Carregando...";
49 Date.getShortMonthName = function(month) {
50 return Date.monthNames[month].substring(0, 3);
68 Date.getMonthNumber = function(name) {
69 return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
83 Ext.MessageBox.buttonText = {
91 if (Ext.util.Format) {
92 Ext.util.Format.date = function(v, format){
94 if (!(v instanceof Date)) v = new Date(Date.parse(v));
95 return v.dateFormat(format || "d/m/Y");
97 Ext.util.Format.brMoney = function(v){
98 v = (Math.round((v - 0) * 100)) / 100;
99 v = (v == Math.floor(v)) ? v + ".00" : ((v * 10 == Math.floor(v * 10)) ? v + "0" : v);
101 var ps = v.split('.');
103 var sub = ps[1] ? '.' + ps[1] : '.00';
104 var r = /(\d+)(\d{3})/;
105 while (r.test(whole)) {
106 whole = whole.replace(r, '$1' + '.' + '$2');
109 if (v.charAt(0) == '-') {
110 return '- R$ ' + v.substr(1);
117 Ext.apply(Ext.DatePicker.prototype, {
119 minText : "Esta data é anterior a menor data",
120 maxText : "Esta data é posterior a maior data",
121 disabledDaysText : "",
122 disabledDatesText : "",
123 monthNames : Date.monthNames,
124 dayNames : Date.dayNames,
125 nextText : 'Próximo Mês (Control+Direita)',
126 prevText : 'Mês Anterior (Control+Esquerda)',
127 monthYearText : 'Escolha um Mês (Control+Cima/Baixo para mover entre os anos)',
128 todayTip : "{0} (Espaço)",
130 okText : " OK ",
131 cancelText : "Cancelar",
136 if(Ext.PagingToolbar){
137 Ext.apply(Ext.PagingToolbar.prototype, {
138 beforePageText : "Página",
139 afterPageText : "de {0}",
140 firstText : "Primeira Página",
141 prevText : "Página Anterior",
142 nextText : "Próxima Página",
143 lastText : "Última Página",
144 refreshText : "Atualizar",
145 displayMsg : "<b>{0} à {1} de {2} registro(s)</b>",
146 emptyMsg : 'Sem registros para exibir'
150 if(Ext.form.TextField){
151 Ext.apply(Ext.form.TextField.prototype, {
152 minLengthText : "O tamanho mínimo para este campo é {0}",
153 maxLengthText : "O tamanho máximo para este campo é {0}",
154 blankText : "Este campo é obrigatório.",
160 if(Ext.form.NumberField){
161 Ext.apply(Ext.form.NumberField.prototype, {
162 minText : "O valor mínimo para este campo é {0}",
163 maxText : "O valor máximo para este campo é {0}",
164 nanText : "{0} não é um número válido"
168 if(Ext.form.DateField){
169 Ext.apply(Ext.form.DateField.prototype, {
170 disabledDaysText : "Desabilitado",
171 disabledDatesText : "Desabilitado",
172 minText : "A data deste campo deve ser posterior a {0}",
173 maxText : "A data deste campo deve ser anterior a {0}",
174 invalidText : "{0} não é uma data válida - deve ser informado no formato {1}",
179 if(Ext.form.ComboBox){
180 Ext.apply(Ext.form.ComboBox.prototype, {
181 loadingText : "Carregando...",
182 valueNotFoundText : undefined
187 Ext.apply(Ext.form.VTypes, {
188 emailText : 'Este campo deve ser um endereço de e-mail válido, no formado "usuario@dominio.com.br"',
189 urlText : 'Este campo deve ser uma URL no formato "http:/'+'/www.dominio.com.br"',
190 alphaText : 'Este campo deve conter apenas letras e _',
191 alphanumText : 'Este campo deve conter apenas letras, números e _'
195 if(Ext.form.HtmlEditor){
196 Ext.apply(Ext.form.HtmlEditor.prototype, {
197 createLinkText : 'Porfavor, entre com a URL do link:',
200 title: 'Negrito (Ctrl+B)',
201 text: 'Deixa o texto selecionado em negrito.',
202 cls: 'x-html-editor-tip'
205 title: 'Italico (Ctrl+I)',
206 text: 'Deixa o texto selecionado em italico.',
207 cls: 'x-html-editor-tip'
210 title: 'Sublinhado (Ctrl+U)',
211 text: 'Sublinha o texto selecionado.',
212 cls: 'x-html-editor-tip'
215 title: 'Aumentar Texto',
216 text: 'Aumenta o tamanho da fonte.',
217 cls: 'x-html-editor-tip'
220 title: 'Diminuir Texto',
221 text: 'Diminui o tamanho da fonte.',
222 cls: 'x-html-editor-tip'
225 title: 'Cor de Fundo',
226 text: 'Muda a cor do fundo do texto selecionado.',
227 cls: 'x-html-editor-tip'
230 title: 'Cor da Fonte',
231 text: 'Muda a cor do texto selecionado.',
232 cls: 'x-html-editor-tip'
235 title: 'Alinhar à Esquerda',
236 text: 'Alinha o texto à esquerda.',
237 cls: 'x-html-editor-tip'
240 title: 'Centralizar Texto',
241 text: 'Centraliza o texto no editor.',
242 cls: 'x-html-editor-tip'
245 title: 'Alinhar à Direita',
246 text: 'Alinha o texto à direita.',
247 cls: 'x-html-editor-tip'
249 insertunorderedlist : {
250 title: 'Lista com Marcadores',
251 text: 'Inicia uma lista com marcadores.',
252 cls: 'x-html-editor-tip'
254 insertorderedlist : {
255 title: 'Lista Numerada',
256 text: 'Inicia uma lista numerada.',
257 cls: 'x-html-editor-tip'
260 title: 'Hyperligação',
261 text: 'Transforma o texto selecionado em um hyperlink.',
262 cls: 'x-html-editor-tip'
265 title: 'Editar Fonte',
266 text: 'Troca para o modo de edição de código fonte.',
267 cls: 'x-html-editor-tip'
273 if(Ext.grid.GridView){
274 Ext.apply(Ext.grid.GridView.prototype, {
275 sortAscText : "Ordem Ascendente",
276 sortDescText : "Ordem Descendente",
277 lockText : "Bloquear Coluna",
278 unlockText : "Desbloquear Coluna",
279 columnsText : "Colunas"
283 if(Ext.grid.PropertyColumnModel){
284 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
291 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
292 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
293 splitTip : "Arraste para redimensionar.",
294 collapsibleSplitTip : "Arraste para redimensionar. Duplo clique para esconder."