Upgrade to ExtJS 3.3.1 - Released 11/30/2010
[extjs.git] / src / locale / ext-lang-pt_BR.js
1 /*!
2  * Ext JS Library 3.3.1
3  * Copyright(c) 2006-2010 Sencha Inc.
4  * licensing@sencha.com
5  * http://www.sencha.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       startDay          : 0
183    });
184 }
185
186 if(Ext.form.ComboBox){
187    Ext.apply(Ext.form.ComboBox.prototype, {
188       loadingText       : "Carregando...",
189       valueNotFoundText : undefined
190    });
191 }
192
193 if(Ext.form.VTypes){
194    Ext.apply(Ext.form.VTypes, {
195       emailText    : 'Este campo deve ser um endere&ccedil;o de e-mail v&aacute;lido, no formato "usuario@dominio.com.br"',
196       urlText      : 'Este campo deve ser uma URL no formato "http:/'+'/www.dominio.com.br"',
197       alphaText    : 'Este campo deve conter apenas letras e _',
198       alphanumText : 'Este campo deve conter apenas letras, n&uacute;meros e _'
199    });
200 }
201
202 if(Ext.form.HtmlEditor){
203    Ext.apply(Ext.form.HtmlEditor.prototype, {
204         createLinkText : 'Por favor, entre com a URL do link:',
205         buttonTips : {
206             bold : {
207                title: 'Negrito (Ctrl+B)',
208                text: 'Deixa o texto selecionado em negrito.',
209                cls: 'x-html-editor-tip'
210             },
211             italic : {
212                title: 'It&aacute;lico (Ctrl+I)',
213                text: 'Deixa o texto selecionado em it&aacute;lico.',
214                cls: 'x-html-editor-tip'
215             },
216             underline : {
217                title: 'Sublinhado (Ctrl+U)',
218                text: 'Sublinha o texto selecionado.',
219                cls: 'x-html-editor-tip'
220            },
221            increasefontsize : {
222                title: 'Aumentar Texto',
223                text: 'Aumenta o tamanho da fonte.',
224                cls: 'x-html-editor-tip'
225            },
226            decreasefontsize : {
227                title: 'Diminuir Texto',
228                text: 'Diminui o tamanho da fonte.',
229                cls: 'x-html-editor-tip'
230            },
231            backcolor : {
232                title: 'Cor de Fundo',
233                text: 'Muda a cor do fundo do texto selecionado.',
234                cls: 'x-html-editor-tip'
235            },
236            forecolor : {
237                title: 'Cor da Fonte',
238                text: 'Muda a cor do texto selecionado.',
239                cls: 'x-html-editor-tip'
240            },
241            justifyleft : {
242                title: 'Alinhar &agrave; Esquerda',
243                text: 'Alinha o texto &agrave; esquerda.',
244                cls: 'x-html-editor-tip'
245            },
246            justifycenter : {
247                title: 'Centralizar Texto',
248                text: 'Centraliza o texto no editor.',
249                cls: 'x-html-editor-tip'
250            },
251            justifyright : {
252                title: 'Alinhar &agrave; Direita',
253                text: 'Alinha o texto &agrave; direita.',
254                cls: 'x-html-editor-tip'
255            },
256            insertunorderedlist : {
257                title: 'Lista com Marcadores',
258                text: 'Inicia uma lista com marcadores.',
259                cls: 'x-html-editor-tip'
260            },
261            insertorderedlist : {
262                title: 'Lista Numerada',
263                text: 'Inicia uma lista numerada.',
264                cls: 'x-html-editor-tip'
265            },
266            createlink : {
267                title: 'Link',
268                text: 'Transforma o texto selecionado em um link.',
269                cls: 'x-html-editor-tip'
270            },
271            sourceedit : {
272                title: 'Editar Fonte',
273                text: 'Troca para o modo de edi&ccedil;&atilde;o de c&oacute;digo fonte.',
274                cls: 'x-html-editor-tip'
275            }
276         }
277    });
278 }
279
280 if(Ext.grid.GridView){
281    Ext.apply(Ext.grid.GridView.prototype, {
282       sortAscText  : "Ordem Ascendente",
283       sortDescText : "Ordem Descendente",
284       lockText     : "Bloquear Coluna",
285       unlockText   : "Desbloquear Coluna",
286       columnsText  : "Colunas"
287    });
288 }
289
290 if(Ext.grid.PropertyColumnModel){
291    Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
292       nameText   : "Nome",
293       valueText  : "Valor",
294       dateFormat : "d/m/Y"
295    });
296 }
297
298 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
299    Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
300       splitTip            : "Arraste para redimensionar.",
301       collapsibleSplitTip : "Arraste para redimensionar. Duplo clique para esconder."
302    });
303 }