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