summaryrefslogtreecommitdiff
path: root/languages/LanguageRo.php
blob: 1cac3d02cd2db825eb7ea267510b4f538a427e5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php
/** Romanian (Română)
 *
 * @package MediaWiki
 * @subpackage Language
 */

require_once( 'LanguageUtf8.php' );

if (!$wgCachedMessageArrays) {
	require_once('MessagesRo.php');
}

class LanguageRo extends LanguageUtf8 {
	private $mMessagesRo, $mNamespaceNamesRo = null;

	private $mQuickbarSettingsRo = array(
		'Fără', 'Fixă, în stânga', 'Fixă, în dreapta', 'Liberă'
	);
	
	private $mSkinNamesRo = array(
		'standard' => 'Normală',
		'nostalgia' => 'Nostalgie'
	);
		
	private $mMagicWordsRo = array(
	#   ID                                 CASE  SYNONYMS
		MAG_REDIRECT             => array( 0,    '#redirect'                                       ),
		MAG_NOTOC                => array( 0,    '__NOTOC__', '__FARACUPRINS__'                    ),
		MAG_NOEDITSECTION        => array( 0,    '__NOEDITSECTION__', '__FARAEDITSECTIUNE__'       ),
		MAG_START                => array( 0,    '__START__'                                       ),
		MAG_CURRENTMONTH         => array( 1,    'CURRENTMONTH', '{{NUMARLUNACURENTA}}'            ),
		MAG_CURRENTMONTHNAME     => array( 1,    'CURRENTMONTHNAME', '{{NUMELUNACURENTA}}'         ),
		MAG_CURRENTDAY           => array( 1,    'CURRENTDAY', '{{NUMARZIUACURENTA}}'              ),
		MAG_CURRENTDAYNAME       => array( 1,    'CURRENTDAYNAME', '{{NUMEZIUACURENTA}}'           ),
		MAG_CURRENTYEAR          => array( 1,    'CURRENTYEAR', '{{ANULCURENT}}'                   ),
		MAG_CURRENTTIME          => array( 1,    'CURRENTTIME', '{{ORACURENTA}}'                   ),
		MAG_NUMBEROFARTICLES     => array( 1,    'NUMBEROFARTICLES', '{{NUMARDEARTICOLE}}'         ),
		MAG_CURRENTMONTHNAMEGEN  => array( 1,    'CURRENTMONTHNAMEGEN', '{{NUMELUNACURENTAGEN}}'   ),
		MAG_SUBST                => array( 0,    'SUBST:'                                          ),
		MAG_MSGNW                => array( 0,    'MSGNW:', 'MSJNOU:'                               ),
		MAG_END                  => array( 0,    '__END__', '__FINAL__'                            ),
		MAG_IMG_THUMBNAIL        => array( 1,    'thumbnail', 'thumb'                              ),
		MAG_IMG_RIGHT            => array( 1,    'right'                                           ),
		MAG_IMG_LEFT             => array( 1,    'left'                                            ),
		MAG_IMG_NONE             => array( 1,    'none'                                            ),
		MAG_IMG_WIDTH            => array( 1,    '$1px'                                            ),
		MAG_IMG_CENTER           => array( 1,    'center', 'centre'                                ),
		MAG_INT                  => array( 0,    'INT:'                                            )
	);

	
	function __construct() {
		parent::__construct();

		global $wgAllMessagesRo;
		$this->mMessagesRo =& $wgAllMessagesRo;

		global $wgMetaNamespace;
		$this->mNamespaceNamesRo = array(
			NS_MEDIA          => 'Media',
			NS_SPECIAL        => 'Special',
			NS_MAIN           => '',
			NS_TALK           => 'Discuţie',
			NS_USER           => 'Utilizator',
			NS_USER_TALK      => 'Discuţie_Utilizator',
			NS_PROJECT        => $wgMetaNamespace,
			NS_PROJECT_TALK   => 'Discuţie_'.$wgMetaNamespace,
			NS_IMAGE          => 'Imagine',
			NS_IMAGE_TALK     => 'Discuţie_Imagine',
			NS_MEDIAWIKI      => 'MediaWiki',
			NS_MEDIAWIKI_TALK => 'Discuţie_MediaWiki',
			NS_TEMPLATE       => 'Format',
			NS_TEMPLATE_TALK  => 'Discuţie_Format',
			NS_HELP           => 'Ajutor',
			NS_HELP_TALK      => 'Discuţie_Ajutor',
			NS_CATEGORY       => 'Categorie',
			NS_CATEGORY_TALK  => 'Discuţie_Categorie'
		);

	}

	function getNamespaces() {
		return $this->mNamespaceNamesRo + parent::getNamespaces();
	}

	function getQuickbarSettings() {
		return $this->mQuickbarSettingsRo;
	}

	function getSkinNames() {
		return $this->mSkinNamesRo + parent::getSkinNames();
	}

	function getDateFormats() {
		return false;
	}

	function &getMagicWords()  {
		$t = $this->mMagicWordsRo + parent::getMagicWords();
		return $t;
	}

	function getMessage( $key ) {
		if( isset( $this->mMessagesRo[$key] ) ) {
			return $this->mMessagesRo[$key];
		} else {
			return parent::getMessage( $key );
		}
	}

	function getAllMessages() {
		return $this->mMessagesRo;
	}

	function timeDateSeparator( $format ) {
		return ' ';
	}

	function timeBeforeDate() {
		return false;
	}

	function fallback8bitEncoding() {
		return 'iso8859-2';
	}

}

?>