3
* Copyright(c) 2006-2009, Ext JS, LLC.
6
* http://extjs.com/license
10
* Portuguese/Brazil Translation by Weber Souza
12
* Updated by Allan Brazute Alves (EthraZa)
14
* Updated by Leonardo Lima
16
* Updated by Juliano Tarini (jtarini)
20
Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Carregando...</div>';
23
Ext.View.prototype.emptyText = "";
26
if(Ext.grid.GridPanel){
27
Ext.grid.GridPanel.prototype.ddText = "{0} linha(s) selecionada(s)";
31
Ext.TabPanelItem.prototype.closeText = "Fechar";
35
Ext.form.Field.prototype.invalidText = "O valor para este campo é inválido";
39
Ext.LoadMask.prototype.msg = "Carregando...";
57
Date.getShortMonthName = function(month) {
58
return Date.monthNames[month].substring(0, 3);
76
Date.getMonthNumber = function(name) {
77
return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
91
Ext.MessageBox.buttonText = {
99
if (Ext.util.Format) {
100
Ext.util.Format.date = function(v, format){
102
if (!(v instanceof Date)) v = new Date(Date.parse(v));
103
return v.dateFormat(format || "d/m/Y");
105
Ext.util.Format.brMoney = function(v){
106
v = (Math.round((v - 0) * 100)) / 100;
107
v = (v == Math.floor(v)) ? v + ".00" : ((v * 10 == Math.floor(v * 10)) ? v + "0" : v);
109
var ps = v.split('.');
111
var sub = ps[1] ? '.' + ps[1] : '.00';
112
var r = /(\d+)(\d{3})/;
113
while (r.test(whole)) {
114
whole = whole.replace(r, '$1' + '.' + '$2');
117
if (v.charAt(0) == '-') {
118
return '- R$ ' + v.substr(1);
125
Ext.apply(Ext.DatePicker.prototype, {
127
minText : "Esta data é anterior a menor data",
128
maxText : "Esta data é posterior a maior data",
129
disabledDaysText : "",
130
disabledDatesText : "",
131
monthNames : Date.monthNames,
132
dayNames : Date.dayNames,
133
nextText : 'Próximo Mês (Control+Direita)',
134
prevText : 'Mês Anterior (Control+Esquerda)',
135
monthYearText : 'Escolha um Mês (Control+Cima/Baixo para mover entre os anos)',
136
todayTip : "{0} (Espaço)",
138
okText : " OK ",
139
cancelText : "Cancelar",
144
if(Ext.PagingToolbar){
145
Ext.apply(Ext.PagingToolbar.prototype, {
146
beforePageText : "Página",
147
afterPageText : "de {0}",
148
firstText : "Primeira Página",
149
prevText : "Página Anterior",
150
nextText : "Próxima Página",
151
lastText : "Última Página",
152
refreshText : "Atualizar",
153
displayMsg : "<b>{0} à {1} de {2} registro(s)</b>",
154
emptyMsg : 'Sem registros para exibir'
158
if(Ext.form.TextField){
159
Ext.apply(Ext.form.TextField.prototype, {
160
minLengthText : "O tamanho mínimo para este campo é {0}",
161
maxLengthText : "O tamanho máximo para este campo é {0}",
162
blankText : "Este campo é obrigatório.",
168
if(Ext.form.NumberField){
169
Ext.apply(Ext.form.NumberField.prototype, {
170
minText : "O valor mínimo para este campo é {0}",
171
maxText : "O valor máximo para este campo é {0}",
172
nanText : "{0} não é um número válido"
176
if(Ext.form.DateField){
177
Ext.apply(Ext.form.DateField.prototype, {
178
disabledDaysText : "Desabilitado",
179
disabledDatesText : "Desabilitado",
180
minText : "A data deste campo deve ser posterior a {0}",
181
maxText : "A data deste campo deve ser anterior a {0}",
182
invalidText : "{0} não é uma data válida - deve ser informado no formato {1}",
187
if(Ext.form.ComboBox){
188
Ext.apply(Ext.form.ComboBox.prototype, {
189
loadingText : "Carregando...",
190
valueNotFoundText : undefined
195
Ext.apply(Ext.form.VTypes, {
196
emailText : 'Este campo deve ser um endereço de e-mail válido, no formado "usuario@dominio.com.br"',
197
urlText : 'Este campo deve ser uma URL no formato "http:/'+'/www.dominio.com.br"',
198
alphaText : 'Este campo deve conter apenas letras e _',
199
alphanumText : 'Este campo deve conter apenas letras, números e _'
203
if(Ext.form.HtmlEditor){
204
Ext.apply(Ext.form.HtmlEditor.prototype, {
205
createLinkText : 'Porfavor, entre com a URL do link:',
208
title: 'Negrito (Ctrl+B)',
209
text: 'Deixa o texto selecionado em negrito.',
210
cls: 'x-html-editor-tip'
213
title: 'Italico (Ctrl+I)',
214
text: 'Deixa o texto selecionado em italico.',
215
cls: 'x-html-editor-tip'
218
title: 'Sublinhado (Ctrl+U)',
219
text: 'Sublinha o texto selecionado.',
220
cls: 'x-html-editor-tip'
223
title: 'Aumentar Texto',
224
text: 'Aumenta o tamanho da fonte.',
225
cls: 'x-html-editor-tip'
228
title: 'Diminuir Texto',
229
text: 'Diminui o tamanho da fonte.',
230
cls: 'x-html-editor-tip'
233
title: 'Cor de Fundo',
234
text: 'Muda a cor do fundo do texto selecionado.',
235
cls: 'x-html-editor-tip'
238
title: 'Cor da Fonte',
239
text: 'Muda a cor do texto selecionado.',
240
cls: 'x-html-editor-tip'
243
title: 'Alinhar à Esquerda',
244
text: 'Alinha o texto à esquerda.',
245
cls: 'x-html-editor-tip'
248
title: 'Centralizar Texto',
249
text: 'Centraliza o texto no editor.',
250
cls: 'x-html-editor-tip'
253
title: 'Alinhar à Direita',
254
text: 'Alinha o texto à direita.',
255
cls: 'x-html-editor-tip'
257
insertunorderedlist : {
258
title: 'Lista com Marcadores',
259
text: 'Inicia uma lista com marcadores.',
260
cls: 'x-html-editor-tip'
262
insertorderedlist : {
263
title: 'Lista Numerada',
264
text: 'Inicia uma lista numerada.',
265
cls: 'x-html-editor-tip'
268
title: 'Hyperligação',
269
text: 'Transforma o texto selecionado em um hyperlink.',
270
cls: 'x-html-editor-tip'
273
title: 'Editar Fonte',
274
text: 'Troca para o modo de edição de código fonte.',
275
cls: 'x-html-editor-tip'
281
if(Ext.grid.GridView){
282
Ext.apply(Ext.grid.GridView.prototype, {
283
sortAscText : "Ordem Ascendente",
284
sortDescText : "Ordem Descendente",
285
lockText : "Bloquear Coluna",
286
unlockText : "Desbloquear Coluna",
287
columnsText : "Colunas"
291
if(Ext.grid.PropertyColumnModel){
292
Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
299
if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
300
Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
301
splitTip : "Arraste para redimensionar.",
302
collapsibleSplitTip : "Arraste para redimensionar. Duplo clique para esconder."