Upgrade to ExtJS 3.1.0 - Released 12/16/2009
[extjs.git] / src / locale / ext-lang-pt_BR.js
1 /*!
2  * Ext JS Library 3.1.0
3  * Copyright(c) 2006-2009 Ext JS, LLC
4  * licensing@extjs.com
5  * http://www.extjs.com/license
6  */
7 /**
8  * Portuguese/Brazil Translation by Weber Souza
9  * 08 April 2007
10  * Updated by Allan Brazute Alves (EthraZa)
11  * 06 September 2007
12  * Updated by Leonardo Lima
13  * 05 March 2008
14  * Updated by Juliano Tarini (jtarini)
15  * 22 April 2008
16  */
17
18 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Carregando...</div>';
19
20 if(Ext.View){
21    Ext.View.prototype.emptyText = "";
22 }
23
24 if(Ext.grid.GridPanel){
25    Ext.grid.GridPanel.prototype.ddText = "{0} linha(s) selecionada(s)";
26 }
27
28 if(Ext.TabPanelItem){
29    Ext.TabPanelItem.prototype.closeText = "Fechar";
30 }
31
32 if(Ext.form.Field){
33    Ext.form.Field.prototype.invalidText = "O valor para este campo &eacute; inv&aacute;lido";
34 }
35
36 if(Ext.LoadMask){
37     Ext.LoadMask.prototype.msg = "Carregando...";
38 }
39
40 Date.monthNames = [
41    "Janeiro",
42    "Fevereiro",
43    "Mar&ccedil;o",
44    "Abril",
45    "Maio",
46    "Junho",
47    "Julho",
48    "Agosto",
49    "Setembro",
50    "Outubro",
51    "Novembro",
52    "Dezembro"
53 ];
54
55 Date.getShortMonthName = function(month) {
56   return Date.monthNames[month].substring(0, 3);
57 };
58
59 Date.monthNumbers = {
60   Jan : 0,
61   Fev : 1,
62   Mar : 2,
63   Abr : 3,
64   Mai : 4,
65   Jun : 5,
66   Jul : 6,
67   Ago : 7,
68   Set : 8,
69   Out : 9,
70   Nov : 10,
71   Dez : 11
72 };
73
74 Date.getMonthNumber = function(name) {
75   return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
76 };
77
78 Date.dayNames = [
79    "Domingo",
80    "Segunda",
81    "Ter&ccedil;a",
82    "Quarta",
83    "Quinta",
84    "Sexta",
85    "S&aacute;bado"
86 ];
87
88 if(Ext.MessageBox){
89    Ext.MessageBox.buttonText = {
90       ok     : "OK",
91       cancel : "Cancelar",
92       yes    : "Sim",
93       no     : "N&atilde;o"
94    };
95 }
96
97 if (Ext.util.Format) {
98   Ext.util.Format.date = function(v, format){
99     if (!v) return "";
100     if (!(v instanceof Date)) v = new Date(Date.parse(v));
101     return v.dateFormat(format || "d/m/Y");
102   };
103   Ext.util.Format.brMoney = function(v){
104     v = (Math.round((v - 0) * 100)) / 100;
105     v = (v == Math.floor(v)) ? v + ".00" : ((v * 10 == Math.floor(v * 10)) ? v + "0" : v);
106     v = String(v);
107     var ps = v.split('.');
108     var whole = ps[0];
109     var sub = ps[1] ? '.' + ps[1] : '.00';
110     var r = /(\d+)(\d{3})/;
111     while (r.test(whole)) {
112       whole = whole.replace(r, '$1' + '.' + '$2');
113     }
114     v = whole + sub;
115     if (v.charAt(0) == '-') {
116       return '- R$ ' + v.substr(1);
117     }
118     return "R$ " + v;
119   }
120 }
121
122 if(Ext.DatePicker){
123    Ext.apply(Ext.DatePicker.prototype, {
124       todayText         : "Hoje",
125       minText           : "Esta data &eacute; anterior a menor data",
126       maxText           : "Esta data &eacute; posterior a maior data",
127       disabledDaysText  : "",
128       disabledDatesText : "",
129       monthNames        : Date.monthNames,
130       dayNames          : Date.dayNames,
131       nextText          : 'Pr&oacute;ximo M&ecirc;s (Control+Direita)',
132       prevText          : 'M&ecirc;s Anterior (Control+Esquerda)',
133       monthYearText     : 'Escolha um M&ecirc;s (Control+Cima/Baixo para mover entre os anos)',
134       todayTip          : "{0} (Espa&ccedil;o)",
135       format            : "d/m/Y",
136       okText            : "&#160;OK&#160;",
137       cancelText        : "Cancelar",
138       startDay          : 0
139    });
140 }
141
142 if(Ext.PagingToolbar){
143    Ext.apply(Ext.PagingToolbar.prototype, {
144       beforePageText : "P&aacute;gina",
145       afterPageText  : "de {0}",
146       firstText      : "Primeira P&aacute;gina",
147       prevText       : "P&aacute;gina Anterior",
148       nextText       : "Pr&oacute;xima P&aacute;gina",
149       lastText       : "&Uacute;ltima P&aacute;gina",
150       refreshText    : "Atualizar",
151       displayMsg     : "<b>{0} &agrave; {1} de {2} registro(s)</b>",
152       emptyMsg       : 'Sem registros para exibir'
153    });
154 }
155
156 if(Ext.form.TextField){
157    Ext.apply(Ext.form.TextField.prototype, {
158       minLengthText : "O tamanho m&iacute;nimo para este campo &eacute; {0}",
159       maxLengthText : "O tamanho m&aacute;ximo para este campo &eacute; {0}",
160       blankText     : "Este campo &eacute; obrigat&oacute;rio.",
161       regexText     : "",
162       emptyText     : null
163    });
164 }
165
166 if(Ext.form.NumberField){
167    Ext.apply(Ext.form.NumberField.prototype, {
168       minText : "O valor m&iacute;nimo para este campo &eacute; {0}",
169       maxText : "O valor m&aacute;ximo para este campo &eacute; {0}",
170       nanText : "{0} n&atilde;o &eacute; um n&uacute;mero v&aacute;lido"
171    });
172 }
173
174 if(Ext.form.DateField){
175    Ext.apply(Ext.form.DateField.prototype, {
176       disabledDaysText  : "Desabilitado",
177       disabledDatesText : "Desabilitado",
178       minText           : "A data deste campo deve ser posterior a {0}",
179       maxText           : "A data deste campo deve ser anterior a {0}",
180       invalidText       : "{0} n&atilde;o &eacute; uma data v&aacute;lida - deve ser informado no formato {1}",
181       format            : "d/m/Y"
182    });
183 }
184
185 if(Ext.form.ComboBox){
186    Ext.apply(Ext.form.ComboBox.prototype, {
187       loadingText       : "Carregando...",
188       valueNotFoundText : undefined
189    });
190 }
191
192 if(Ext.form.VTypes){
193    Ext.apply(Ext.form.VTypes, {
194       emailText    : 'Este campo deve ser um endere&ccedil;o de e-mail v&aacute;lido, no formado "usuario@dominio.com.br"',
195       urlText      : 'Este campo deve ser uma URL no formato "http:/'+'/www.dominio.com.br"',
196       alphaText    : 'Este campo deve conter apenas letras e _',
197       alphanumText : 'Este campo deve conter apenas letras, n&uacute;meros e _'
198    });
199 }
200
201 if(Ext.form.HtmlEditor){
202    Ext.apply(Ext.form.HtmlEditor.prototype, {
203         createLinkText : 'Porfavor, entre com a URL do link:',
204         buttonTips : {
205             bold : {
206                title: 'Negrito (Ctrl+B)',
207                text: 'Deixa o texto selecionado em negrito.',
208                cls: 'x-html-editor-tip'
209             },
210             italic : {
211                title: 'Italico (Ctrl+I)',
212                text: 'Deixa o texto selecionado em italico.',
213                cls: 'x-html-editor-tip'
214             },
215             underline : {
216                title: 'Sublinhado (Ctrl+U)',
217                text: 'Sublinha o texto selecionado.',
218                cls: 'x-html-editor-tip'
219            },
220            increasefontsize : {
221                title: 'Aumentar Texto',
222                text: 'Aumenta o tamanho da fonte.',
223                cls: 'x-html-editor-tip'
224            },
225            decreasefontsize : {
226                title: 'Diminuir Texto',
227                text: 'Diminui o tamanho da fonte.',
228                cls: 'x-html-editor-tip'
229            },
230            backcolor : {
231                title: 'Cor de Fundo',
232                text: 'Muda a cor do fundo do texto selecionado.',
233                cls: 'x-html-editor-tip'
234            },
235            forecolor : {
236                title: 'Cor da Fonte',
237                text: 'Muda a cor do texto selecionado.',
238                cls: 'x-html-editor-tip'
239            },
240            justifyleft : {
241                title: 'Alinhar &agrave; Esquerda',
242                text: 'Alinha o texto &agrave; esquerda.',
243                cls: 'x-html-editor-tip'
244            },
245            justifycenter : {
246                title: 'Centralizar Texto',
247                text: 'Centraliza o texto no editor.',
248                cls: 'x-html-editor-tip'
249            },
250            justifyright : {
251                title: 'Alinhar &agrave; Direita',
252                text: 'Alinha o texto &agrave; direita.',
253                cls: 'x-html-editor-tip'
254            },
255            insertunorderedlist : {
256                title: 'Lista com Marcadores',
257                text: 'Inicia uma lista com marcadores.',
258                cls: 'x-html-editor-tip'
259            },
260            insertorderedlist : {
261                title: 'Lista Numerada',
262                text: 'Inicia uma lista numerada.',
263                cls: 'x-html-editor-tip'
264            },
265            createlink : {
266                title: 'Hyperliga&ccedil;&atilde;o',
267                text: 'Transforma o texto selecionado em um hyperlink.',
268                cls: 'x-html-editor-tip'
269            },
270            sourceedit : {
271                title: 'Editar Fonte',
272                text: 'Troca para o modo de edi&ccedil;&atilde;o de c&oacute;digo fonte.',
273                cls: 'x-html-editor-tip'
274            }
275         }
276    });
277 }
278
279 if(Ext.grid.GridView){
280    Ext.apply(Ext.grid.GridView.prototype, {
281       sortAscText  : "Ordem Ascendente",
282       sortDescText : "Ordem Descendente",
283       lockText     : "Bloquear Coluna",
284       unlockText   : "Desbloquear Coluna",
285       columnsText  : "Colunas"
286    });
287 }
288
289 if(Ext.grid.PropertyColumnModel){
290    Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
291       nameText   : "Nome",
292       valueText  : "Valor",
293       dateFormat : "d/m/Y"
294    });
295 }
296
297 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
298    Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
299       splitTip            : "Arraste para redimensionar.",
300       collapsibleSplitTip : "Arraste para redimensionar. Duplo clique para esconder."
301    });
302 }