3 * Copyright(c) 2006-2010 Ext JS, Inc.
5 * http://www.extjs.com/license
8 * Portuguese/Brazil Translation by Weber Souza
10 * Updated by Allan Brazute Alves (EthraZa)
12 * Updated by Leonardo Lima
14 * Updated by Juliano Tarini (jtarini)
18 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Carregando...</div>';
21 Ext.View.prototype.emptyText = "";
24 if(Ext.grid.GridPanel){
25 Ext.grid.GridPanel.prototype.ddText = "{0} linha(s) selecionada(s)";
29 Ext.TabPanelItem.prototype.closeText = "Fechar";
33 Ext.form.Field.prototype.invalidText = "O valor para este campo é inválido";
37 Ext.LoadMask.prototype.msg = "Carregando...";
55 Date.getShortMonthName = function(month) {
56 return Date.monthNames[month].substring(0, 3);
74 Date.getMonthNumber = function(name) {
75 return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
89 Ext.MessageBox.buttonText = {
97 if (Ext.util.Format) {
98 Ext.util.Format.date = function(v, format){
100 if (!(v instanceof Date)) v = new Date(Date.parse(v));
101 return v.dateFormat(format || "d/m/Y");
103 Ext.util.Format.brMoney = function(v){
104 v = (Math.round((v - 0) * 100)) / 100;
105 v = (v == Math.floor(v)) ? v + ".00" : ((v * 10 == Math.floor(v * 10)) ? v + "0" : v);
107 var ps = v.split('.');
109 var sub = ps[1] ? '.' + ps[1] : '.00';
110 var r = /(\d+)(\d{3})/;
111 while (r.test(whole)) {
112 whole = whole.replace(r, '$1' + '.' + '$2');
115 if (v.charAt(0) == '-') {
116 return '- R$ ' + v.substr(1);
123 Ext.apply(Ext.DatePicker.prototype, {
125 minText : "Esta data é anterior a menor data",
126 maxText : "Esta data é posterior a maior data",
127 disabledDaysText : "",
128 disabledDatesText : "",
129 monthNames : Date.monthNames,
130 dayNames : Date.dayNames,
131 nextText : 'Próximo Mês (Control+Direita)',
132 prevText : 'Mês Anterior (Control+Esquerda)',
133 monthYearText : 'Escolha um Mês (Control+Cima/Baixo para mover entre os anos)',
134 todayTip : "{0} (Espaço)",
136 okText : " OK ",
137 cancelText : "Cancelar",
142 if(Ext.PagingToolbar){
143 Ext.apply(Ext.PagingToolbar.prototype, {
144 beforePageText : "Página",
145 afterPageText : "de {0}",
146 firstText : "Primeira Página",
147 prevText : "Página Anterior",
148 nextText : "Próxima Página",
149 lastText : "Última Página",
150 refreshText : "Atualizar",
151 displayMsg : "<b>{0} à {1} de {2} registro(s)</b>",
152 emptyMsg : 'Sem registros para exibir'
156 if(Ext.form.TextField){
157 Ext.apply(Ext.form.TextField.prototype, {
158 minLengthText : "O tamanho mínimo para este campo é {0}",
159 maxLengthText : "O tamanho máximo para este campo é {0}",
160 blankText : "Este campo é obrigatório.",
166 if(Ext.form.NumberField){
167 Ext.apply(Ext.form.NumberField.prototype, {
168 minText : "O valor mínimo para este campo é {0}",
169 maxText : "O valor máximo para este campo é {0}",
170 nanText : "{0} não é um número válido"
174 if(Ext.form.DateField){
175 Ext.apply(Ext.form.DateField.prototype, {
176 disabledDaysText : "Desabilitado",
177 disabledDatesText : "Desabilitado",
178 minText : "A data deste campo deve ser posterior a {0}",
179 maxText : "A data deste campo deve ser anterior a {0}",
180 invalidText : "{0} não é uma data válida - deve ser informado no formato {1}",
185 if(Ext.form.ComboBox){
186 Ext.apply(Ext.form.ComboBox.prototype, {
187 loadingText : "Carregando...",
188 valueNotFoundText : undefined
193 Ext.apply(Ext.form.VTypes, {
194 emailText : 'Este campo deve ser um endereço de e-mail válido, no formato "usuario@dominio.com.br"',
195 urlText : 'Este campo deve ser uma URL no formato "http:/'+'/www.dominio.com.br"',
196 alphaText : 'Este campo deve conter apenas letras e _',
197 alphanumText : 'Este campo deve conter apenas letras, números e _'
201 if(Ext.form.HtmlEditor){
202 Ext.apply(Ext.form.HtmlEditor.prototype, {
203 createLinkText : 'Por favor, entre com a URL do link:',
206 title: 'Negrito (Ctrl+B)',
207 text: 'Deixa o texto selecionado em negrito.',
208 cls: 'x-html-editor-tip'
211 title: 'Itálico (Ctrl+I)',
212 text: 'Deixa o texto selecionado em itálico.',
213 cls: 'x-html-editor-tip'
216 title: 'Sublinhado (Ctrl+U)',
217 text: 'Sublinha o texto selecionado.',
218 cls: 'x-html-editor-tip'
221 title: 'Aumentar Texto',
222 text: 'Aumenta o tamanho da fonte.',
223 cls: 'x-html-editor-tip'
226 title: 'Diminuir Texto',
227 text: 'Diminui o tamanho da fonte.',
228 cls: 'x-html-editor-tip'
231 title: 'Cor de Fundo',
232 text: 'Muda a cor do fundo do texto selecionado.',
233 cls: 'x-html-editor-tip'
236 title: 'Cor da Fonte',
237 text: 'Muda a cor do texto selecionado.',
238 cls: 'x-html-editor-tip'
241 title: 'Alinhar à Esquerda',
242 text: 'Alinha o texto à esquerda.',
243 cls: 'x-html-editor-tip'
246 title: 'Centralizar Texto',
247 text: 'Centraliza o texto no editor.',
248 cls: 'x-html-editor-tip'
251 title: 'Alinhar à Direita',
252 text: 'Alinha o texto à direita.',
253 cls: 'x-html-editor-tip'
255 insertunorderedlist : {
256 title: 'Lista com Marcadores',
257 text: 'Inicia uma lista com marcadores.',
258 cls: 'x-html-editor-tip'
260 insertorderedlist : {
261 title: 'Lista Numerada',
262 text: 'Inicia uma lista numerada.',
263 cls: 'x-html-editor-tip'
267 text: 'Transforma o texto selecionado em um link.',
268 cls: 'x-html-editor-tip'
271 title: 'Editar Fonte',
272 text: 'Troca para o modo de edição de código fonte.',
273 cls: 'x-html-editor-tip'
279 if(Ext.grid.GridView){
280 Ext.apply(Ext.grid.GridView.prototype, {
281 sortAscText : "Ordem Ascendente",
282 sortDescText : "Ordem Descendente",
283 lockText : "Bloquear Coluna",
284 unlockText : "Desbloquear Coluna",
285 columnsText : "Colunas"
289 if(Ext.grid.PropertyColumnModel){
290 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
297 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
298 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
299 splitTip : "Arraste para redimensionar.",
300 collapsibleSplitTip : "Arraste para redimensionar. Duplo clique para esconder."