summaryrefslogtreecommitdiff
path: root/languages/LanguageRmy.php
blob: f4b9583d58213a8f6f279261e415d1a337a3765a (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
<?php
/** Vlax Romany (Romani)
  *
  * @package MediaWiki
  * @subpackage Language
  *
  * @bug 5422
  *
  * @author Niklas Laxström
  *
  * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
  */

/**
 * Use Romanian as default instead of English
 */
require_once 'LanguageRo.php';


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

class LanguageRmy extends LanguageRo {
	private $mMessagesRmy = null;

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

		global $wgAllMessagesRmy;
		$this->mMessagesRmy =& $wgAllMessagesRmy;

	}

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

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

	function getFallbackLanguage() {
		return 'ro';
	}

}
?>