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>
7 <body onload="prettyPrint();">
8 <pre class="prettyprint lang-js">/*!
10 * Copyright(c) 2006-2009 Ext JS, LLC
12 * http://www.extjs.com/license
14 <div id="prop-Ext.Direct.Transaction-indicatorText"></div>/**
15 * Portuguese/Brazil Translation by Weber Souza
17 * Updated by Allan Brazute Alves (EthraZa)
19 * Updated by Leonardo Lima
21 * Updated by Juliano Tarini (jtarini)
25 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Carregando...</div>';
28 Ext.View.prototype.emptyText = "";
31 if(Ext.grid.GridPanel){
32 Ext.grid.GridPanel.prototype.ddText = "{0} linha(s) selecionada(s)";
36 Ext.TabPanelItem.prototype.closeText = "Fechar";
40 Ext.form.Field.prototype.invalidText = "O valor para este campo é inválido";
44 Ext.LoadMask.prototype.msg = "Carregando...";
62 Date.getShortMonthName = function(month) {
63 return Date.monthNames[month].substring(0, 3);
81 Date.getMonthNumber = function(name) {
82 return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
96 Ext.MessageBox.buttonText = {
104 if (Ext.util.Format) {
105 Ext.util.Format.date = function(v, format){
107 if (!(v instanceof Date)) v = new Date(Date.parse(v));
108 return v.dateFormat(format || "d/m/Y");
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);
114 var ps = v.split('.');
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');
122 if (v.charAt(0) == '-') {
123 return '- R$ ' + v.substr(1);
130 Ext.apply(Ext.DatePicker.prototype, {
132 minText : "Esta data é anterior a menor data",
133 maxText : "Esta data é posterior a maior data",
134 disabledDaysText : "",
135 disabledDatesText : "",
136 monthNames : Date.monthNames,
137 dayNames : Date.dayNames,
138 nextText : 'Próximo Mês (Control+Direita)',
139 prevText : 'Mês Anterior (Control+Esquerda)',
140 monthYearText : 'Escolha um Mês (Control+Cima/Baixo para mover entre os anos)',
141 todayTip : "{0} (Espaço)",
143 okText : " OK ",
144 cancelText : "Cancelar",
149 if(Ext.PagingToolbar){
150 Ext.apply(Ext.PagingToolbar.prototype, {
151 beforePageText : "Página",
152 afterPageText : "de {0}",
153 firstText : "Primeira Página",
154 prevText : "Página Anterior",
155 nextText : "Próxima Página",
156 lastText : "Última Página",
157 refreshText : "Atualizar",
158 displayMsg : "<b>{0} à {1} de {2} registro(s)</b>",
159 emptyMsg : 'Sem registros para exibir'
163 if(Ext.form.TextField){
164 Ext.apply(Ext.form.TextField.prototype, {
165 minLengthText : "O tamanho mínimo para este campo é {0}",
166 maxLengthText : "O tamanho máximo para este campo é {0}",
167 blankText : "Este campo é obrigatório.",
173 if(Ext.form.NumberField){
174 Ext.apply(Ext.form.NumberField.prototype, {
175 minText : "O valor mínimo para este campo é {0}",
176 maxText : "O valor máximo para este campo é {0}",
177 nanText : "{0} não é um número válido"
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ão é uma data válida - deve ser informado no formato {1}",
192 if(Ext.form.ComboBox){
193 Ext.apply(Ext.form.ComboBox.prototype, {
194 loadingText : "Carregando...",
195 valueNotFoundText : undefined
200 Ext.apply(Ext.form.VTypes, {
201 emailText : 'Este campo deve ser um endereço de e-mail vá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úmeros e _'
208 if(Ext.form.HtmlEditor){
209 Ext.apply(Ext.form.HtmlEditor.prototype, {
210 createLinkText : 'Porfavor, entre com a URL do link:',
213 title: 'Negrito (Ctrl+B)',
214 text: 'Deixa o texto selecionado em negrito.',
215 cls: 'x-html-editor-tip'
218 title: 'Italico (Ctrl+I)',
219 text: 'Deixa o texto selecionado em italico.',
220 cls: 'x-html-editor-tip'
223 title: 'Sublinhado (Ctrl+U)',
224 text: 'Sublinha o texto selecionado.',
225 cls: 'x-html-editor-tip'
228 title: 'Aumentar Texto',
229 text: 'Aumenta o tamanho da fonte.',
230 cls: 'x-html-editor-tip'
233 title: 'Diminuir Texto',
234 text: 'Diminui o tamanho da fonte.',
235 cls: 'x-html-editor-tip'
238 title: 'Cor de Fundo',
239 text: 'Muda a cor do fundo do texto selecionado.',
240 cls: 'x-html-editor-tip'
243 title: 'Cor da Fonte',
244 text: 'Muda a cor do texto selecionado.',
245 cls: 'x-html-editor-tip'
248 title: 'Alinhar à Esquerda',
249 text: 'Alinha o texto à esquerda.',
250 cls: 'x-html-editor-tip'
253 title: 'Centralizar Texto',
254 text: 'Centraliza o texto no editor.',
255 cls: 'x-html-editor-tip'
258 title: 'Alinhar à Direita',
259 text: 'Alinha o texto à direita.',
260 cls: 'x-html-editor-tip'
262 insertunorderedlist : {
263 title: 'Lista com Marcadores',
264 text: 'Inicia uma lista com marcadores.',
265 cls: 'x-html-editor-tip'
267 insertorderedlist : {
268 title: 'Lista Numerada',
269 text: 'Inicia uma lista numerada.',
270 cls: 'x-html-editor-tip'
273 title: 'Hyperligação',
274 text: 'Transforma o texto selecionado em um hyperlink.',
275 cls: 'x-html-editor-tip'
278 title: 'Editar Fonte',
279 text: 'Troca para o modo de edição de código fonte.',
280 cls: 'x-html-editor-tip'
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"
296 if(Ext.grid.PropertyColumnModel){
297 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
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."