web/data/jquery.ui.datepicker-es.js
author Julien Cristau <julien.cristau@logilab.fr>
Tue, 28 Jul 2015 09:25:26 +0200
changeset 10553 1d824df4f2bd
parent 7133 110f38b322ef
permissions -rw-r--r--
Fix (de)serialization of ComputedRelation read permissions For normal relation types, permissions don't need to be stored since they're just default values for the relation definitions. However, computed relations are serialized (as CWComputedRType), while their relation definitions are added at schema finalization time, and are only in memory. So add the 'read_permission' relation to CWComputedRType, and the appropriate hooks to save and restore those permissions. To avoid having to touch yams, we drop the 'add' and 'delete' permissions from the default computed relation permissions; this should probably be backported there. The actual permissions (set on the relation definitions) are hardcoded in finalize_computed_relations anyway. In deserialize_schema, the CWComputedRType handling needs to be delayed a little bit, until after we've called deserialize_ertype_permissions. The rql2sql test is adjusted because CWComputedRType has a 'name' attribute and the 'read_permission' relation, which generates ambiguity vs CWEType. We add an explicit CubicWebRelationSchema.check_permission_definitions, since we need to check both that computed and non-computed rtypes are defined properly. Based on report and initial patch from Christophe de Vienne (thanks!). Closes #5706307
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6737
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
     1
/* Inicialización en español para la extensión 'UI date picker' para jQuery. */
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
     2
/* Traducido por Vester (xvester@gmail.com). */
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
     3
jQuery(function($){
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
     4
	$.datepicker.regional['es'] = {
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
     5
		closeText: 'Cerrar',
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
     6
		prevText: '&#x3c;Ant',
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
     7
		nextText: 'Sig&#x3e;',
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
     8
		currentText: 'Hoy',
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
     9
		monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio',
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
    10
		'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'],
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
    11
		monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun',
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
    12
		'Jul','Ago','Sep','Oct','Nov','Dic'],
7133
110f38b322ef [date picker] apply Carlos patch fixing spanish date picker translation file. Closes #1558893
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 6737
diff changeset
    13
		dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'],
110f38b322ef [date picker] apply Carlos patch fixing spanish date picker translation file. Closes #1558893
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 6737
diff changeset
    14
		dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'],
110f38b322ef [date picker] apply Carlos patch fixing spanish date picker translation file. Closes #1558893
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 6737
diff changeset
    15
		dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'],
6737
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
    16
		weekHeader: 'Sm',
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
    17
		dateFormat: 'dd/mm/yy',
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
    18
		firstDay: 1,
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
    19
		isRTL: false,
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
    20
		showMonthAfterYear: false,
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
    21
		yearSuffix: ''};
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
    22
	$.datepicker.setDefaults($.datepicker.regional['es']);
de49060d4be3 add localization files for jquery datepicker
Stephanie Marcu <stephanie.marcu@logilab.fr>
parents:
diff changeset
    23
});