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