3 * Copyright(c) 2006-2009, Ext JS, LLC.
\r
4 * licensing@extjs.com
\r
6 * http://extjs.com/license
\r
10 * Portuguese/Brazil Translation by Weber Souza
\r
12 * Updated by Allan Brazute Alves (EthraZa)
\r
14 * Updated by Leonardo Lima
\r
16 * Updated by Juliano Tarini (jtarini)
\r
20 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Carregando...</div>';
\r
23 Ext.View.prototype.emptyText = "";
\r
26 if(Ext.grid.GridPanel){
\r
27 Ext.grid.GridPanel.prototype.ddText = "{0} linha(s) selecionada(s)";
\r
30 if(Ext.TabPanelItem){
\r
31 Ext.TabPanelItem.prototype.closeText = "Fechar";
\r
35 Ext.form.Field.prototype.invalidText = "O valor para este campo é inválido";
\r
39 Ext.LoadMask.prototype.msg = "Carregando...";
\r
57 Date.getShortMonthName = function(month) {
\r
58 return Date.monthNames[month].substring(0, 3);
\r
61 Date.monthNumbers = {
\r
76 Date.getMonthNumber = function(name) {
\r
77 return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
\r
91 Ext.MessageBox.buttonText = {
\r
93 cancel : "Cancelar",
\r
99 if (Ext.util.Format) {
\r
100 Ext.util.Format.date = function(v, format){
\r
102 if (!(v instanceof Date)) v = new Date(Date.parse(v));
\r
103 return v.dateFormat(format || "d/m/Y");
\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
109 var ps = v.split('.');
\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
117 if (v.charAt(0) == '-') {
\r
118 return '- R$ ' + v.substr(1);
\r
124 if(Ext.DatePicker){
\r
125 Ext.apply(Ext.DatePicker.prototype, {
\r
126 todayText : "Hoje",
\r
127 minText : "Esta data é anterior a menor data",
\r
128 maxText : "Esta data é posterior a maior data",
\r
129 disabledDaysText : "",
\r
130 disabledDatesText : "",
\r
131 monthNames : Date.monthNames,
\r
132 dayNames : Date.dayNames,
\r
133 nextText : 'Próximo Mês (Control+Direita)',
\r
134 prevText : 'Mês Anterior (Control+Esquerda)',
\r
135 monthYearText : 'Escolha um Mês (Control+Cima/Baixo para mover entre os anos)',
\r
136 todayTip : "{0} (Espaço)",
\r
138 okText : " OK ",
\r
139 cancelText : "Cancelar",
\r
144 if(Ext.PagingToolbar){
\r
145 Ext.apply(Ext.PagingToolbar.prototype, {
\r
146 beforePageText : "Página",
\r
147 afterPageText : "de {0}",
\r
148 firstText : "Primeira Página",
\r
149 prevText : "Página Anterior",
\r
150 nextText : "Próxima Página",
\r
151 lastText : "Última Página",
\r
152 refreshText : "Atualizar",
\r
153 displayMsg : "<b>{0} à {1} de {2} registro(s)</b>",
\r
154 emptyMsg : 'Sem registros para exibir'
\r
158 if(Ext.form.TextField){
\r
159 Ext.apply(Ext.form.TextField.prototype, {
\r
160 minLengthText : "O tamanho mínimo para este campo é {0}",
\r
161 maxLengthText : "O tamanho máximo para este campo é {0}",
\r
162 blankText : "Este campo é obrigatório.",
\r
168 if(Ext.form.NumberField){
\r
169 Ext.apply(Ext.form.NumberField.prototype, {
\r
170 minText : "O valor mínimo para este campo é {0}",
\r
171 maxText : "O valor máximo para este campo é {0}",
\r
172 nanText : "{0} não é um número válido"
\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ão é uma data válida - deve ser informado no formato {1}",
\r
187 if(Ext.form.ComboBox){
\r
188 Ext.apply(Ext.form.ComboBox.prototype, {
\r
189 loadingText : "Carregando...",
\r
190 valueNotFoundText : undefined
\r
194 if(Ext.form.VTypes){
\r
195 Ext.apply(Ext.form.VTypes, {
\r
196 emailText : 'Este campo deve ser um endereço de e-mail vá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úmeros e _'
\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
208 title: 'Negrito (Ctrl+B)',
\r
209 text: 'Deixa o texto selecionado em negrito.',
\r
210 cls: 'x-html-editor-tip'
\r
213 title: 'Italico (Ctrl+I)',
\r
214 text: 'Deixa o texto selecionado em italico.',
\r
215 cls: 'x-html-editor-tip'
\r
218 title: 'Sublinhado (Ctrl+U)',
\r
219 text: 'Sublinha o texto selecionado.',
\r
220 cls: 'x-html-editor-tip'
\r
222 increasefontsize : {
\r
223 title: 'Aumentar Texto',
\r
224 text: 'Aumenta o tamanho da fonte.',
\r
225 cls: 'x-html-editor-tip'
\r
227 decreasefontsize : {
\r
228 title: 'Diminuir Texto',
\r
229 text: 'Diminui o tamanho da fonte.',
\r
230 cls: 'x-html-editor-tip'
\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
238 title: 'Cor da Fonte',
\r
239 text: 'Muda a cor do texto selecionado.',
\r
240 cls: 'x-html-editor-tip'
\r
243 title: 'Alinhar à Esquerda',
\r
244 text: 'Alinha o texto à esquerda.',
\r
245 cls: 'x-html-editor-tip'
\r
248 title: 'Centralizar Texto',
\r
249 text: 'Centraliza o texto no editor.',
\r
250 cls: 'x-html-editor-tip'
\r
253 title: 'Alinhar à Direita',
\r
254 text: 'Alinha o texto à direita.',
\r
255 cls: 'x-html-editor-tip'
\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
262 insertorderedlist : {
\r
263 title: 'Lista Numerada',
\r
264 text: 'Inicia uma lista numerada.',
\r
265 cls: 'x-html-editor-tip'
\r
268 title: 'Hyperligação',
\r
269 text: 'Transforma o texto selecionado em um hyperlink.',
\r
270 cls: 'x-html-editor-tip'
\r
273 title: 'Editar Fonte',
\r
274 text: 'Troca para o modo de edição de código fonte.',
\r
275 cls: 'x-html-editor-tip'
\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
291 if(Ext.grid.PropertyColumnModel){
\r
292 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
\r
294 valueText : "Valor",
\r
295 dateFormat : "d/m/Y"
\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