* Restructured
[lhc/web/wiklou.git] / languages / LanguageEs.php
1 <?php
2 /** Spanish (Español)
3 *
4 * @bug 4401
5 * @bug 4424
6 *
7 * @package MediaWiki
8 * @subpackage Language
9 */
10
11 require_once( 'LanguageUtf8.php' );
12
13 if (!$wgCachedMessageArrays) {
14 require_once('MessagesEs.php');
15 }
16
17 class LanguageEs extends LanguageUtf8 {
18 private $mMessagesEs, $mNamespaceNamesEs = null;
19
20 private $mQuickbarSettingsEs = array(
21 'Ninguna', 'Fija a la izquierda', 'Fija a la derecha', 'Flotante a la izquierda'
22 );
23
24 private $mSkinNamesEs = array(
25 'standard' => 'Estándar',
26 );
27
28 function __construct() {
29 parent::__construct();
30
31 global $wgAllMessagesEs;
32 $this->mMessagesEs =& $wgAllMessagesEs;
33
34 global $wgMetaNamespace;
35 $this->mNamespaceNamesEs = array(
36 NS_MEDIA => 'Media',
37 NS_SPECIAL => 'Especial',
38 NS_MAIN => '',
39 NS_TALK => 'Discusión',
40 NS_USER => 'Usuario',
41 NS_USER_TALK => 'Usuario_Discusión',
42 NS_PROJECT => $wgMetaNamespace,
43 NS_PROJECT_TALK => $wgMetaNamespace . '_Discusión',
44 NS_IMAGE => 'Imagen',
45 NS_IMAGE_TALK => 'Imagen_Discusión',
46 NS_MEDIAWIKI => 'MediaWiki',
47 NS_MEDIAWIKI_TALK => 'MediaWiki_Discusión',
48 NS_TEMPLATE => 'Plantilla',
49 NS_TEMPLATE_TALK => 'Plantilla_Discusión',
50 NS_HELP => 'Ayuda',
51 NS_HELP_TALK => 'Ayuda_Discusión',
52 NS_CATEGORY => 'Categoría',
53 NS_CATEGORY_TALK => 'Categoría_Discusión',
54 );
55
56 }
57
58 function getNamespaces() {
59 return $this->mNamespaceNamesEs + parent::getNamespaces();
60 }
61
62 function getQuickbarSettings() {
63 return $this->mQuickbarSettingsEs;
64 }
65
66 function getSkinNames() {
67 return $this->mSkinNamesEs + parent::getSkinNames();
68 }
69
70 function getDateFormats() {
71 return false;
72 }
73
74 function getMessage( $key ) {
75 if( isset( $this->mMessagesEs[$key] ) ) {
76 return $this->mMessagesEs[$key];
77 } else {
78 return parent::getMessage( $key );
79 }
80 }
81
82 function getAllMessages() {
83 return $this->mMessagesEs;
84 }
85
86 function formatMonth( $month, $format ) {
87 return $this->getMonthAbbreviation( $month );
88 }
89
90 function timeDateSeparator( $format ) {
91 return ' ';
92 }
93
94 function separatorTransformTable() {
95 return array(',' => '.', '.' => ',' );
96 }
97
98 }
99
100 ?>