ext-lang-es.js
上传用户:qfccsy
上传日期:2022-03-27
资源大小:716k
文件大小:9k
源码类别:

ListView/ListBox

开发平台:

Java

  1. /*
  2.  * Spanish/Latin American Translation by genius551v 04-08-2007
  3.  * Revised by efege, 2007-04-15.
  4.  * Revised by Rafaga2k 10-01-2007 (mm/dd/yyyy)
  5.  * Revised by FeDe 12-13-2007 (mm/dd/yyyy)
  6.  */
  7. Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Cargando...</div>';
  8. if(Ext.View){
  9.    Ext.View.prototype.emptyText = "";
  10. }
  11. if(Ext.grid.Grid){
  12.    Ext.grid.Grid.prototype.ddText = "{0} fila(s) seleccionada(s)";
  13. }
  14. if(Ext.TabPanelItem){
  15.    Ext.TabPanelItem.prototype.closeText = "Cerrar esta pesta&#241;a";
  16. }
  17. if(Ext.form.Field){
  18.    Ext.form.Field.prototype.invalidText = "El valor en este campo es inv&#225;lido";
  19. }
  20. if(Ext.LoadMask){
  21.     Ext.LoadMask.prototype.msg = "Cargando...";
  22. }
  23. Date.monthNames = [
  24.    "Enero",
  25.    "Febrero",
  26.    "Marzo",
  27.    "Abril",
  28.    "Mayo",
  29.    "Junio",
  30.    "Julio",
  31.    "Agosto",
  32.    "Septiembre",
  33.    "Octubre",
  34.    "Noviembre",
  35.    "Diciembre"
  36. ];
  37. Date.getShortMonthName = function(month) {
  38.   return Date.monthNames[month].substring(0, 3);
  39. };
  40. Date.monthNumbers = {
  41.   Ene : 0,
  42.   Feb : 1,
  43.   Mar : 2,
  44.   Abr : 3,
  45.   May : 4,
  46.   Jun : 5,
  47.   Jul : 6,
  48.   Ago : 7,
  49.   Sep : 8,
  50.   Oct : 9,
  51.   Nov : 10,
  52.   Dic : 11
  53. };
  54. Date.getMonthNumber = function(name) {
  55.   return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
  56. };
  57. Date.dayNames = [
  58.    "Domingo",
  59.    "Lunes",
  60.    "Martes",
  61.    "Mi&#233;rcoles",
  62.    "Jueves",
  63.    "Viernes",
  64.    "S&#225;bado"
  65. ];
  66. Date.getShortDayName = function(day) {
  67.   if (day==3) return "Mié";
  68.   if (day==6) return "Sáb";
  69.   return Date.dayNames[day].substring(0, 3);
  70. };
  71. if(Ext.MessageBox){
  72.    Ext.MessageBox.buttonText = {
  73.       ok     : "Aceptar",
  74.       cancel : "Cancelar",
  75.       yes    : "S&#237;",
  76.       no     : "No"
  77.    };
  78. }
  79. if(Ext.util.Format){
  80.    Ext.util.Format.date = function(v, format){
  81.       if(!v) return "";
  82.       if(!(v instanceof Date)) v = new Date(Date.parse(v));
  83.       return v.dateFormat(format || "d/m/Y");
  84.    };
  85. }
  86. if(Ext.DatePicker){
  87.    Ext.apply(Ext.DatePicker.prototype, {
  88.       todayText         : "Hoy",
  89.       minText           : "Esta fecha es anterior a la fecha m&#237;nima",
  90.       maxText           : "Esta fecha es posterior a la fecha m&#225;xima",
  91.       disabledDaysText  : "",
  92.       disabledDatesText : "",
  93.       monthNames     : Date.monthNames,
  94.       dayNames     : Date.dayNames,
  95.       nextText          : 'Mes Siguiente (Control+Right)',
  96.       prevText          : 'Mes Anterior (Control+Left)',
  97.       monthYearText     : 'Seleccione un mes (Control+Up/Down para desplazar el a&#241;o)',
  98.       todayTip          : "{0} (Barra espaciadora)",
  99.       format            : "d/m/Y",
  100.       okText            : "&#160;Ok&#160;",
  101.       cancelText        : "Cancelar",
  102.       startDay          : 1
  103.    });
  104. }
  105. if(Ext.PagingToolbar){
  106.    Ext.apply(Ext.PagingToolbar.prototype, {
  107.       beforePageText : "P&#225;gina",
  108.       afterPageText  : "de {0}",
  109.       firstText      : "Primera p&#225;gina",
  110.       prevText       : "P&#225;gina anterior",
  111.       nextText       : "P&#225;gina siguiente",
  112.       lastText       : "Última p&#225;gina",
  113.       refreshText    : "Actualizar",
  114.       displayMsg     : "Mostrando {0} - {1} de {2}",
  115.       emptyMsg       : 'Sin datos para mostrar'
  116.    });
  117. }
  118. if(Ext.form.TextField){
  119.    Ext.apply(Ext.form.TextField.prototype, {
  120.       minLengthText : "El tama&#241;o m&#237;nimo para este campo es de {0}",
  121.       maxLengthText : "El tama&#241;o m&#225;ximo para este campo es de {0}",
  122.       blankText     : "Este campo es obligatorio",
  123.       regexText     : "",
  124.       emptyText     : null
  125.    });
  126. }
  127. if(Ext.form.NumberField){
  128.    Ext.apply(Ext.form.NumberField.prototype, {
  129.       minText : "El valor m&#237;nimo para este campo es de {0}",
  130.       maxText : "El valor m&#225;ximo para este campo es de {0}",
  131.       nanText : "{0} no es un n&#250;mero v&#225;lido"
  132.    });
  133. }
  134. if(Ext.form.DateField){
  135.    Ext.apply(Ext.form.DateField.prototype, {
  136.       disabledDaysText  : "Deshabilitado",
  137.       disabledDatesText : "Deshabilitado",
  138.       minText           : "La fecha para este campo debe ser posterior a {0}",
  139.       maxText           : "La fecha para este campo debe ser anterior a {0}",
  140.       invalidText       : "{0} no es una fecha v&#225;lida - debe tener el formato {1}",
  141.       format            : "d/m/Y",
  142.       altFormats        : "d/m/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|Y-m-d"
  143.    });
  144. }
  145. if(Ext.form.ComboBox){
  146.    Ext.apply(Ext.form.ComboBox.prototype, {
  147.       loadingText       : "Cargando...",
  148.       valueNotFoundText : undefined
  149.    });
  150. }
  151. if(Ext.form.HtmlEditor){
  152.    Ext.apply(Ext.form.HtmlEditor.prototype, {
  153.       createLinkText : "Por favor proporcione el URL para el enlace:",
  154.           buttonTips : {
  155.               insertimage:{
  156.                   title:'Imagen',
  157.                   text:'Inserta una imagen en la posición actual',
  158.                   cls:'x-html-editor-tip'
  159.               },
  160.               bold : {
  161.                   title: 'Negritas (Ctrl+B)',
  162.                   text: 'Transforma el texto seleccionado en Negritas.',
  163.                   cls: 'x-html-editor-tip'
  164.               },
  165.               italic : {
  166.                   title: 'Italica (Ctrl+I)',
  167.                   text: 'Transforma el texto seleccionado en Italicas.',
  168.                   cls: 'x-html-editor-tip'
  169.               },
  170.               underline : {
  171.                   title: 'Subrayado (Ctrl+U)',
  172.                   text: 'Subraya el texto seleccionado.',
  173.                   cls: 'x-html-editor-tip'
  174.               },
  175.               increasefontsize : {
  176.                   title: 'Aumentar la fuente',
  177.                   text: 'Aumenta el tama&#241;o de la fuente',
  178.                   cls: 'x-html-editor-tip'
  179.               },
  180.               decreasefontsize : {
  181.                   title: 'Reducir la fuente',
  182.                   text: 'Reduce el tama&#241;o de la fuente.',
  183.                   cls: 'x-html-editor-tip'
  184.               },
  185.               backcolor : {
  186.                   title: 'Color de fondo',
  187.                   text: 'Modifica el color de fondo del texto seleccionado.',
  188.                   cls: 'x-html-editor-tip'
  189.               },
  190.               forecolor : {
  191.                   title: 'Color de la fuente',
  192.                   text: 'Modifica el color del texto seleccionado.',
  193.                   cls: 'x-html-editor-tip'
  194.               },
  195.               justifyleft : {
  196.                   title: 'Alinear a la izquierda',
  197.                   text: 'Alinea el texto a la izquierda.',
  198.                   cls: 'x-html-editor-tip'
  199.               },
  200.               justifycenter : {
  201.                   title: 'Centrar',
  202.                   text: 'Centrar el texto.',
  203.                   cls: 'x-html-editor-tip'
  204.               },
  205.               justifyright : {
  206.                   title: 'Alinear a la derecha',
  207.                   text: 'Alinea el texto a la derecha.',
  208.                   cls: 'x-html-editor-tip'
  209.               },
  210.               insertunorderedlist : {
  211.                   title: 'Lista de vi&#241;etas',
  212.                   text: 'Inicia una lista con vi&#241;etas.',
  213.                   cls: 'x-html-editor-tip'
  214.               },
  215.               insertorderedlist : {
  216.                   title: 'Lista numerada',
  217.                   text: 'Inicia una lista numerada.',
  218.                   cls: 'x-html-editor-tip'
  219.               },
  220.               createlink : {
  221.                   title: 'Enlace',
  222.                   text: 'Inserta un enlace de hipertexto.',
  223.                   cls: 'x-html-editor-tip'
  224.               },
  225.               sourceedit : {
  226.                   title: 'Codigo Fuente',
  227.                   text: 'Pasar al modo de edicion de codigo fuente.',
  228.                   cls: 'x-html-editor-tip'
  229.               }
  230.         }
  231.    });
  232. }
  233. if(Ext.form.VTypes){
  234.    Ext.apply(Ext.form.VTypes, {
  235.       emailText    : 'Este campo debe ser una direcci&#243;n de correo electr&#243;nico con el formato "usuario@dominio.com"',
  236.       urlText      : 'Este campo debe ser una URL con el formato "http:/'+'/www.dominio.com"',
  237.       alphaText    : 'Este campo solo debe contener letras y _',
  238.       alphanumText : 'Este campo solo debe contener letras, n&#250;meros y _'
  239.    });
  240. }
  241. if(Ext.grid.GridView){
  242.    Ext.apply(Ext.grid.GridView.prototype, {
  243.       sortAscText  : "Ordenar en forma ascendente",
  244.       sortDescText : "Ordenar en forma descendente",
  245.       lockText     : "Bloquear Columna",
  246.       unlockText   : "Desbloquear Columna",
  247.       columnsText  : "Columnas"
  248.    });
  249. }
  250. if(Ext.grid.GroupingView){
  251.   Ext.apply(Ext.grid.GroupingView.prototype, {
  252.     emptyGroupText : '(Ninguno)',
  253.     groupByText    : 'Agrupar por este campo',
  254.     showGroupsText : 'Mostrar en grupos'
  255.   });
  256. }
  257. if(Ext.grid.PropertyColumnModel){
  258.    Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
  259.       nameText   : "Nombre",
  260.       valueText  : "Valor",
  261.       dateFormat : "j/m/Y"
  262.    });
  263. }
  264. if(Ext.layout.BorderLayout.SplitRegion){
  265.    Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
  266.       splitTip            : "Arrastre para redimensionar.",
  267.       collapsibleSplitTip : "Arrastre para redimensionar. Doble clic para ocultar."
  268.    });
  269. }