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