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