123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284 |
- // This is needed until we can refactor all of the locales into individual files
- Ext.define("Ext.locale.es.Component", {
- override: "Ext.Component"
- });Ext.define("Ext.locale.es.data.validator.Presence", {
- override: "Ext.data.validator.Presence",
- message: "Este campo es obligatorio",
- getMessage: function() {
- var me = this;
- return me.message || me.config.message;
- }
- });/**
- * Spanish/Latin American Translation by genius551v 04-08-2007
- * Revised by efege, 2007-04-15.
- * Revised by Rafaga2k 10-01-2007 (mm/dd/yyyy)
- * Revised by FeDe 12-13-2007 (mm/dd/yyyy)
- * Synchronized with 2.2 version of ext-lang-en.js (provided by Condor 8 aug 2008)
- * by halkon_polako 14-aug-2008
- */
- Ext.onReady(function() {
- if (Ext.Date) {
- Ext.Date.monthNames = ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"];
- Ext.Date.getShortMonthName = function(month) {
- return Ext.Date.monthNames[month].substring(0, 3);
- };
- Ext.Date.monthNumbers = {
- Ene: 0,
- Feb: 1,
- Mar: 2,
- Abr: 3,
- May: 4,
- Jun: 5,
- Jul: 6,
- Ago: 7,
- Sep: 8,
- Oct: 9,
- Nov: 10,
- Dic: 11
- };
- Ext.Date.getMonthNumber = function(name) {
- return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
- };
- Ext.Date.dayNames = ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"];
- Ext.Date.getShortDayName = function(day) {
- if (day == 3) return "Mié";
- if (day == 6) return "Sáb";
- return Ext.Date.dayNames[day].substring(0, 3);
- };
- Ext.Date.formatCodes.a = "(this.getHours() < 12 ? 'a.m.' : 'p.m.')";
- Ext.Date.formatCodes.A = "(this.getHours() < 12 ? 'A.M.' : 'P.M.')";
- // This will match am or a.m.
- Ext.Date.parseCodes.a = Ext.Date.parseCodes.A = {
- g:1,
- c:"if (/(a\\.?m\\.?)/i.test(results[{0}])) {\n"
- + "if (!h || h == 12) { h = 0; }\n"
- + "} else { if (!h || h < 12) { h = (h || 0) + 12; }}",
- s:"(A\\.?M\\.?|P\\.?M\\.?|a\\.?m\\.?|p\\.?m\\.?)",
- calcAtEnd: true
- };
- Ext.Date.parseCodes.S.s = "(?:st|nd|rd|th)";
- }
- if (Ext.util && Ext.util.Format) {
- Ext.apply(Ext.util.Format, {
- thousandSeparator: '.',
- decimalSeparator: ',',
- currencySign: '\u20ac',
- // Spanish Euro
- dateFormat: 'd/m/Y'
- });
- }
- });
- Ext.define("Ext.locale.es.form.CheckboxGroup", {
- override: "Ext.form.CheckboxGroup",
- blankText: "Debe seleccionar al menos un étem de este grupo"
- });Ext.define("Ext.locale.es.form.RadioGroup", {
- override: "Ext.form.RadioGroup",
- blankText: "Debe seleccionar un étem de este grupo"
- });Ext.define("Ext.locale.es.form.field.Base", {
- override: "Ext.form.field.Base",
- invalidText: "El valor en este campo es inválido"
- });Ext.define("Ext.locale.es.form.field.ComboBox", {
- override: "Ext.form.field.ComboBox",
- valueNotFoundText: undefined
- }, function() {
- Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
- loadingText: "Cargando..."
- });
- });Ext.define("Ext.locale.es.form.field.Date", {
- override: "Ext.form.field.Date",
- disabledDaysText: "Deshabilitado",
- disabledDatesText: "Deshabilitado",
- minText: "La fecha para este campo debe ser posterior a {0}",
- maxText: "La fecha para este campo debe ser anterior a {0}",
- invalidText: "{0} no es una fecha válida - debe tener el formato {1}",
- format: "d/m/Y",
- altFormats: "d/m/Y|d-m-y|d-m-Y|d/m|d-m|dm|dmy|dmY|d|Y-m-d"
- });Ext.define("Ext.locale.es.form.field.File", {
- override: "Ext.form.field.File",
- buttonText: "Examinar..."
- });Ext.define("Ext.locale.es.form.field.HtmlEditor", {
- override: "Ext.form.field.HtmlEditor",
- createLinkText: "Por favor proporcione la URL para el enlace:"
- }, function() {
- Ext.apply(Ext.form.field.HtmlEditor.prototype, {
- buttonTips: {
- bold: {
- title: 'Negritas (Ctrl+B)',
- text: 'Transforma el texto seleccionado en Negritas.',
- cls: Ext.baseCSSPrefix + 'html-editor-tip'
- },
- italic: {
- title: 'Itálica (Ctrl+I)',
- text: 'Transforma el texto seleccionado en Itálicas.',
- cls: Ext.baseCSSPrefix + 'html-editor-tip'
- },
- underline: {
- title: 'Subrayado (Ctrl+U)',
- text: 'Subraya el texto seleccionado.',
- cls: Ext.baseCSSPrefix + 'html-editor-tip'
- },
- increasefontsize: {
- title: 'Aumentar la fuente',
- text: 'Aumenta el tamaño de la fuente',
- cls: Ext.baseCSSPrefix + 'html-editor-tip'
- },
- decreasefontsize: {
- title: 'Reducir la fuente',
- text: 'Reduce el tamaño de la fuente.',
- cls: Ext.baseCSSPrefix + 'html-editor-tip'
- },
- backcolor: {
- title: 'Color de fondo',
- text: 'Modifica el color de fondo del texto seleccionado.',
- cls: Ext.baseCSSPrefix + 'html-editor-tip'
- },
- forecolor: {
- title: 'Color de la fuente',
- text: 'Modifica el color del texto seleccionado.',
- cls: Ext.baseCSSPrefix + 'html-editor-tip'
- },
- justifyleft: {
- title: 'Alinear a la izquierda',
- text: 'Alinea el texto a la izquierda.',
- cls: Ext.baseCSSPrefix + 'html-editor-tip'
- },
- justifycenter: {
- title: 'Centrar',
- text: 'Centrar el texto.',
- cls: Ext.baseCSSPrefix + 'html-editor-tip'
- },
- justifyright: {
- title: 'Alinear a la derecha',
- text: 'Alinea el texto a la derecha.',
- cls: Ext.baseCSSPrefix + 'html-editor-tip'
- },
- insertunorderedlist: {
- title: 'Lista de viñetas',
- text: 'Inicia una lista con viñetas.',
- cls: Ext.baseCSSPrefix + 'html-editor-tip'
- },
- insertorderedlist: {
- title: 'Lista numerada',
- text: 'Inicia una lista numerada.',
- cls: Ext.baseCSSPrefix + 'html-editor-tip'
- },
- createlink: {
- title: 'Enlace',
- text: 'Inserta un enlace de hipertexto.',
- cls: Ext.baseCSSPrefix + 'html-editor-tip'
- },
- sourceedit: {
- title: 'Código Fuente',
- text: 'Pasar al modo de edición de código fuente.',
- cls: Ext.baseCSSPrefix + 'html-editor-tip'
- }
- }
- });
- });Ext.define("Ext.locale.es.form.field.Number", {
- override: "Ext.form.field.Number",
- decimalPrecision: 2,
- minText: "El valor mínimo para este campo es de {0}",
- maxText: "El valor máximo para este campo es de {0}",
- nanText: "{0} no es un número válido"
- });Ext.define("Ext.locale.es.form.field.Text", {
- override: "Ext.form.field.Text",
- minLengthText: "El tamaño mínimo para este campo es de {0}",
- maxLengthText: "El tamaño máximo para este campo es de {0}",
- blankText: "Este campo es obligatorio",
- regexText: "",
- emptyText: null
- });Ext.define("Ext.locale.es.form.field.Time", {
- override: "Ext.form.field.Time",
- minText: "La hora en este campo debe ser igual o posterior a {0}",
- maxText: "La hora en este campo debe ser igual o anterior a {0}",
- invalidText: "{0} no es una hora válida",
- format: "g:i A",
- altFormats: "g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H"
- });Ext.define("Ext.locale.es.form.field.VTypes", {
- override: "Ext.form.field.VTypes",
- emailText: 'Este campo debe ser una dirección de correo electrónico con el formato "usuario@dominio.com"',
- urlText: 'Este campo debe ser una URL con el formato "http:/' + '/www.dominio.com"',
- alphaText: 'Este campo sólo debe contener letras y _',
- alphanumText: 'Este campo sólo debe contener letras, números y _'
- });Ext.define("Ext.locale.es.grid.PropertyColumnModel", {
- override: "Ext.grid.PropertyColumnModel",
- nameText: "Nombre",
- valueText: "Valor",
- dateFormat: "j/m/Y"
- });Ext.define("Ext.locale.es.grid.feature.Grouping", {
- override: "Ext.grid.feature.Grouping",
- emptyGroupText: '(Ninguno)',
- groupByText: 'Agrupar por este campo',
- showGroupsText: 'Mostrar en grupos'
- });Ext.define('Ext.locale.es.grid.filters.filter.Boolean', {
- override: 'Ext.grid.filters.filter.Boolean',
- yesText: 'Sí',
- noText : 'No'
- });
- Ext.define('Ext.locale.es.grid.filters.filter.List', {
- override: 'Ext.grid.filters.filter.List',
- loadingText: 'Cargando...'
- });
- Ext.define("Ext.locale.es.grid.header.Container", {
- override: "Ext.grid.header.Container",
- sortAscText: "Ordenar en forma ascendente",
- sortDescText: "Ordenar en forma descendente",
- columnsText: "Columnas"
- });Ext.define("Ext.locale.es.grid.plugin.DragDrop", {
- override: "Ext.grid.plugin.DragDrop",
- dragText: "{0} fila(s) seleccionada(s)"
- });Ext.define("Ext.locale.es.picker.Date", {
- override: "Ext.picker.Date",
- todayText: "Hoy",
- minText: "Esta fecha es anterior a la fecha mínima",
- maxText: "Esta fecha es posterior a la fecha máxima",
- disabledDaysText: "",
- disabledDatesText: "",
- nextText: 'Mes Siguiente (Control+Right)',
- prevText: 'Mes Anterior (Control+Left)',
- monthYearText: 'Seleccione un mes (Control+Up/Down para desplazar el año)',
- todayTip: "{0} (Barra espaciadora)",
- format: "d/m/Y",
- startDay: 1
- });
- Ext.define("Ext.locale.es.picker.Month", {
- override: "Ext.picker.Month",
- okText: " Aceptar ",
- cancelText: "Cancelar"
- });Ext.define("Ext.locale.es.toolbar.Paging", {
- override: "Ext.PagingToolbar",
- beforePageText: "Página",
- afterPageText: "de {0}",
- firstText: "Primera página",
- prevText: "Página anterior",
- nextText: "Página siguiente",
- lastText: "Última página",
- refreshText: "Actualizar",
- displayMsg: "Mostrando {0} - {1} de {2}",
- emptyMsg: 'Sin datos para mostrar'
- });// changing the msg text below will affect the LoadMask
- Ext.define("Ext.locale.es.view.AbstractView", {
- override: "Ext.view.AbstractView",
- loadingText: "Cargando..."
- });Ext.define("Ext.locale.es.view.View", {
- override: "Ext.view.View",
- emptyText: ""
- });Ext.define("Ext.locale.es.window.MessageBox", {
- override: "Ext.window.MessageBox",
- buttonText: {
- ok: "Aceptar",
- cancel: "Cancelar",
- yes: "Sí",
- no: "No"
- }
- });
|