Completed
Push — master ( 14d2bd...06e609 )
by mw
81:37 queued 59:24
created

languages/SMW_LanguageEs.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * @file
4
 * @ingroup SMWLanguage
5
 */
6
7
/**
8
 * Protect against register_globals vulnerabilities.
9
 * This line must be present before any global variable is referenced.
10
 */
11
if ( !defined( 'MEDIAWIKI' ) ) {
12
	die();
13
}
14
15
global $smwgIP;
0 ignored issues
show
Compatibility Best Practice introduced by
Use of global functionality is not recommended; it makes your code harder to test, and less reusable.

Instead of relying on global state, we recommend one of these alternatives:

1. Pass all data via parameters

function myFunction($a, $b) {
    // Do something
}

2. Create a class that maintains your state

class MyClass {
    private $a;
    private $b;

    public function __construct($a, $b) {
        $this->a = $a;
        $this->b = $b;
    }

    public function myFunction() {
        // Do something
    }
}
Loading history...
16
include_once ( $smwgIP . 'languages/SMW_Language.php' );
17
18
/**
19
 * Spanish language labels for important SMW labels (namespaces, datatypes,...).
20
 *
21
 * @author Javier Calzada Prado, Carmen Jorge García-Reyes, Universidad Carlos III de Madrid, Jesús Espino García
22
 * @author Toniher
23
 * @ingroup SMWLanguage
24
 * @ingroup Language
25
 */
26
class SMWLanguageEs extends SMWLanguage {
27
28
	protected $m_DatatypeLabels = array(
29
		'_wpg' => 'Página', // name of page datatype
30
		'_txt' => 'Texto',  // name of the text type (very long strings)
31
		'_cod' => 'Código',  // name of the (source) code type
32
		'_boo' => 'Booleano',  // name of the boolean type
33
		'_num' => 'Número', // name for the datatype of numbers
34
		'_geo' => 'Coordenadas geográficas', // name of the geocoord type
35
		'_tem' => 'Temperatura',  // name of the temperature type
36
		'_dat' => 'Fecha',  // name of the datetime (calendar) type
37
		'_ema' => 'Dirección electrónica',  // name of the email type
38
		'_uri' => 'URL',  // name of the URL type
39
		'_anu' => 'Anotación-URI',  // name of the annotation URI type (OWL annotation property)
40
		'_tel' => 'Número de teléfono',  // name of the telephone (URI) type
41
		'_rec' => 'Registro', // name of record data type
42
		'_qty' => 'Cantidad', // name of the number type with units of measurement
43
		'_mlt_rec' => 'Monolingual text',
44
	);
45
46
	protected $m_DatatypeAliases = array(
47
		'URI'                   => '_uri',
48
		'Número entero'         => '_num',
49
		'Número con coma'       => '_num',
50
		'Cadena de caracteres'  => '_txt',  // old name of the string type
51
		'Enumeración'           => '_txt',
52
	);
53
54
	protected $m_SpecialProperties = array(
55
		// always start upper-case
56
		'_TYPE' => 'Tiene tipo de datos',
57
		'_URI'  => 'URI equivalente',
58
		'_SUBP' => 'Subpropiedad de',
59
		'_SUBC' => 'Subcategoría de',
60
		'_UNIT' => 'Unidades de medida',
61
		'_IMPO' => 'Importado de',
62
		'_CONV' => 'Corresponde a',
63
		'_SERV' => 'Provee servicio',
64
		'_PVAL' => 'Permite el valor',
65
		'_MDAT' => 'Fecha de modificación',
66
		'_CDAT' => 'Fecha de creación',
67
		'_NEWP' => 'Es página nueva',
68
		'_LEDT' => 'Último editor es',
69
		'_ERRP' => 'Tiene valor incorrecto para',
70
		'_LIST' => 'Tiene campos',
71
		'_SOBJ' => 'Tiene subobjeto',
72
		'_ASK'  => 'Tiene consulta',
73
		'_ASKST'=> 'Cadena de consulta',
74
		'_ASKFO'=> 'Formato de consulta',
75
		'_ASKSI'=> 'Tamaño de consulta',
76
		'_ASKDE'=> 'Profundidad de consulta',
77
		'_ASKDU'=> 'Duración de consulta',
78
		'_MEDIA'=> 'Tipo Media',
79
		'_MIME' => 'Tipo MIME',
80
		'_ERRC' => 'Has processing error',
81
		'_ERRT' => 'Has processing error text',
82
		'_PREC'  => 'Display precision of',
83
		'_LCODE' => 'Language code',
84
		'_TEXT'  => 'Text',
85
		'_PDESC' => 'Has property description',
86
		'_PVAP'  => 'Allows pattern',
87
		'_DTITLE' => 'Display title of',
88
		'_PVUC' => 'Has uniqueness constraint',
89
	);
90
91
	protected $m_SpecialPropertyAliases = array(
92
		'Unidad de medida'  => '_UNIT',
93
	);
94
95
	protected $m_Namespaces = array(
96
		SMW_NS_PROPERTY       => "Atributo",
97
		SMW_NS_PROPERTY_TALK  => "Atributo_discusión",
98
		SMW_NS_TYPE           => "Tipo",
99
		SMW_NS_TYPE_TALK      => "Tipo_discusión",
100
		SMW_NS_CONCEPT        => 'Concepto',
101
		SMW_NS_CONCEPT_TALK   => 'Concepto_discusión'
102
	);
103
104
	protected $m_dateformats = array( array( SMW_Y ), array( SMW_MY, SMW_YM ), array( SMW_MDY, SMW_DMY, SMW_YMD, SMW_YDM ) );
105
106
	protected $m_months = array( "enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre" );
107
108
	protected $m_monthsshort = array( "ene", "feb", "mar", "abr", "may", "jun", "jul", "ago", "sep", "oct", "nov", "dic" );
109
110
	protected $preferredDateFormatsByPrecision = array(
111
		'SMW_PREC_Y'    => 'Y',
112
		'SMW_PREC_YM'   => 'M Y',
113
		'SMW_PREC_YMD'  => 'j M Y',
114
		'SMW_PREC_YMDT' => 'H:i:s j M Y'
115
	);
116
}
117
118
119