ext-lang-pt.js
上传用户:shuoshiled
上传日期:2018-01-28
资源大小:10124k
文件大小:8k
源码类别:

中间件编程

开发平台:

JavaScript

  1. /*!
  2.  * Ext JS Library 3.0.0
  3.  * Copyright(c) 2006-2009 Ext JS, LLC
  4.  * licensing@extjs.com
  5.  * http://www.extjs.com/license
  6.  */
  7. /*
  8.  * Portuguese/Brazil Translation by Weber Souza
  9.  * 08 April 2007
  10.  * Updated by Allan Brazute Alves (EthraZa)
  11.  * 06 September 2007
  12.  * Adapted to European Portuguese by Helder Batista (hbatista)
  13.  * 31 January 2008
  14.  */
  15. Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Carregando...</div>';
  16. if(Ext.View){
  17.    Ext.View.prototype.emptyText = "";
  18. }
  19. if(Ext.grid.GridPanel){
  20.    Ext.grid.GridPanel.prototype.ddText = "{0} linha(s) seleccionada(s)";
  21. }
  22. if(Ext.TabPanelItem){
  23.    Ext.TabPanelItem.prototype.closeText = "Fechar";
  24. }
  25. if(Ext.form.Field){
  26.    Ext.form.Field.prototype.invalidText = "O valor para este campo &eacute; inv&aacute;lido";
  27. }
  28. if(Ext.LoadMask){
  29.     Ext.LoadMask.prototype.msg = "Carregando...";
  30. }
  31. Date.monthNames = [
  32.    "Janeiro",
  33.    "Fevereiro",
  34.    "Mar&ccedil;o",
  35.    "Abril",
  36.    "Maio",
  37.    "Junho",
  38.    "Julho",
  39.    "Agosto",
  40.    "Setembro",
  41.    "Outubro",
  42.    "Novembro",
  43.    "Dezembro"
  44. ];
  45. Date.dayNames = [
  46.    "Domingo",
  47.    "Segunda",
  48.    "Ter&ccedil;a",
  49.    "Quarta",
  50.    "Quinta",
  51.    "Sexta",
  52.    "S&aacute;bado"
  53. ];
  54. if(Ext.MessageBox){
  55.    Ext.MessageBox.buttonText = {
  56.       ok     : "OK",
  57.       cancel : "Cancelar",
  58.       yes    : "Sim",
  59.       no     : "N&atilde;o"
  60.    };
  61. }
  62. if(Ext.util.Format){
  63.    Ext.util.Format.date = function(v, format){
  64.       if(!v) return "";
  65.       if(!(v instanceof Date)) v = new Date(Date.parse(v));
  66.       return v.dateFormat(format || "d/m/Y");
  67.    };
  68. }
  69. if(Ext.DatePicker){
  70.    Ext.apply(Ext.DatePicker.prototype, {
  71.       todayText         : "Hoje",
  72.       minText           : "Esta data &eacute; anterior &agrave; menor data",
  73.       maxText           : "Esta data &eacute; posterior &agrave; maior data",
  74.       disabledDaysText  : "",
  75.       disabledDatesText : "",
  76.       monthNames        : Date.monthNames,
  77.       dayNames          : Date.dayNames,
  78.       nextText          : 'Pr&oacute;ximo M&ecirc;s (Control+Direita)',
  79.       prevText          : 'M&ecirc;s Anterior (Control+Esquerda)',
  80.       monthYearText     : 'Escolha um M&ecirc;s (Control+Cima/Baixo para mover entre os anos)',
  81.       todayTip          : "{0} (Espa&ccedil;o)",
  82.       format            : "d/m/Y",
  83.       okText            : "&#160;OK&#160;",
  84.       cancelText        : "Cancelar",
  85.       startDay          : 0
  86.    });
  87. }
  88. if(Ext.PagingToolbar){
  89.    Ext.apply(Ext.PagingToolbar.prototype, {
  90.       beforePageText : "P&aacute;gina",
  91.       afterPageText  : "de {0}",
  92.       firstText      : "Primeira P&aacute;gina",
  93.       prevText       : "P&aacute;gina Anterior",
  94.       nextText       : "Pr&oacute;xima P&aacute;gina",
  95.       lastText       : "&Uacute;ltima P&aacute;gina",
  96.       refreshText    : "Atualizar",
  97.       displayMsg     : "<b>{0} &agrave; {1} de {2} registo(s)</b>",
  98.       emptyMsg       : 'Sem registos para exibir'
  99.    });
  100. }
  101. if(Ext.form.TextField){
  102.    Ext.apply(Ext.form.TextField.prototype, {
  103.       minLengthText : "O tamanho m&iacute;nimo para este campo &eacute; {0}",
  104.       maxLengthText : "O tamanho m&aacute;ximo para este campo &eacute; {0}",
  105.       blankText     : "Este campo &eacute; obrigat&oacute;rio.",
  106.       regexText     : "",
  107.       emptyText     : null
  108.    });
  109. }
  110. if(Ext.form.NumberField){
  111.    Ext.apply(Ext.form.NumberField.prototype, {
  112.       minText : "O valor m&iacute;nimo para este campo &eacute; {0}",
  113.       maxText : "O valor m&aacute;ximo para este campo &eacute; {0}",
  114.       nanText : "{0} n&atilde;o &eacute; um n&uacute;mero v&aacute;lido"
  115.    });
  116. }
  117. if(Ext.form.DateField){
  118.    Ext.apply(Ext.form.DateField.prototype, {
  119.       disabledDaysText  : "Desabilitado",
  120.       disabledDatesText : "Desabilitado",
  121.       minText           : "A data deste campo deve ser posterior a {0}",
  122.       maxText           : "A data deste campo deve ser anterior a {0}",
  123.       invalidText       : "{0} n&atilde;o &eacute; uma data v&aacute;lida - deve ser usado o formato {1}",
  124.       format            : "d/m/Y"
  125.    });
  126. }
  127. if(Ext.form.ComboBox){
  128.    Ext.apply(Ext.form.ComboBox.prototype, {
  129.       loadingText       : "Carregando...",
  130.       valueNotFoundText : undefined
  131.    });
  132. }
  133. if(Ext.form.VTypes){
  134.    Ext.apply(Ext.form.VTypes, {
  135.       emailText    : 'Este campo deve ser um endere&ccedil;o de e-mail v&aacute;lido, no formato "utilizador@dominio.com"',
  136.       urlText      : 'Este campo deve ser um URL no formato "http:/'+'/www.dominio.com"',
  137.       alphaText    : 'Este campo deve conter apenas letras e _',
  138.       alphanumText : 'Este campo deve conter apenas letras, n&uacute;meros e _'
  139.    });
  140. }
  141. if(Ext.form.HtmlEditor){
  142.    Ext.apply(Ext.form.HtmlEditor.prototype, {
  143.  createLinkText : 'Por favor, entre com o URL do link:',
  144.  buttonTips : {
  145.             bold : {
  146.                title: 'Negrito (Ctrl+B)',
  147.                text: 'Deixa o texto seleccionado em negrito.',
  148.                cls: 'x-html-editor-tip'
  149.             },
  150.             italic : {
  151.                title: 'Italico (Ctrl+I)',
  152.                text: 'Deixa o texto seleccionado em italico.',
  153.                cls: 'x-html-editor-tip'
  154.             },
  155.             underline : {
  156.                title: 'Sublinhado (Ctrl+U)',
  157.                text: 'Sublinha o texto seleccionado.',
  158.                cls: 'x-html-editor-tip'
  159.            },
  160.            increasefontsize : {
  161.                title: 'Aumentar Texto',
  162.                text: 'Aumenta o tamanho da fonte.',
  163.                cls: 'x-html-editor-tip'
  164.            },
  165.            decreasefontsize : {
  166.                title: 'Diminuir Texto',
  167.                text: 'Diminui o tamanho da fonte.',
  168.                cls: 'x-html-editor-tip'
  169.            },
  170.            backcolor : {
  171.                title: 'Cor de Fundo',
  172.                text: 'Muda a cor do fundo do texto seleccionado.',
  173.                cls: 'x-html-editor-tip'
  174.            },
  175.            forecolor : {
  176.                title: 'Cor da Fonte',
  177.                text: 'Muda a cor do texto seleccionado.',
  178.                cls: 'x-html-editor-tip'
  179.            },
  180.            justifyleft : {
  181.                title: 'Alinhar &agrave; Esquerda',
  182.                text: 'Alinha o texto &agrave; esquerda.',
  183.                cls: 'x-html-editor-tip'
  184.            },
  185.            justifycenter : {
  186.                title: 'Centrar Texto',
  187.                text: 'Centra o texto no editor.',
  188.                cls: 'x-html-editor-tip'
  189.            },
  190.            justifyright : {
  191.                title: 'Alinhar &agrave; Direita',
  192.                text: 'Alinha o texto &agrave; direita.',
  193.                cls: 'x-html-editor-tip'
  194.            },
  195.            insertunorderedlist : {
  196.                title: 'Lista com Marcadores',
  197.                text: 'Inicia uma lista com marcadores.',
  198.                cls: 'x-html-editor-tip'
  199.            },
  200.            insertorderedlist : {
  201.                title: 'Lista Numerada',
  202.                text: 'Inicia uma lista numerada.',
  203.                cls: 'x-html-editor-tip'
  204.            },
  205.            createlink : {
  206.                title: 'Hyperliga&ccedil;&atilde;o',
  207.                text: 'Transforma o texto selecionado num hyperlink.',
  208.                cls: 'x-html-editor-tip'
  209.            },
  210.            sourceedit : {
  211.                title: 'Editar Fonte',
  212.                text: 'Troca para o modo de edi&ccedil;&atilde;o de c&oacute;digo fonte.',
  213.                cls: 'x-html-editor-tip'
  214.            }
  215.         }
  216.    });
  217. }
  218. if(Ext.grid.GridView){
  219.    Ext.apply(Ext.grid.GridView.prototype, {
  220.       sortAscText  : "Ordem Ascendente",
  221.       sortDescText : "Ordem Descendente",
  222.       lockText     : "Bloquear Coluna",
  223.       unlockText   : "Desbloquear Coluna",
  224.       columnsText  : "Colunas"
  225.    });
  226. }
  227. if(Ext.grid.PropertyColumnModel){
  228.    Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
  229.       nameText   : "Nome",
  230.       valueText  : "Valor",
  231.       dateFormat : "d/m/Y"
  232.    });
  233. }
  234. if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
  235.    Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
  236.       splitTip            : "Arraste para redimensionar.",
  237.       collapsibleSplitTip : "Arraste para redimensionar. Duplo clique para esconder."
  238.    });
  239. }