summaryrefslogtreecommitdiff
path: root/languages/LanguageTe.php
blob: 631fcc9ccc2cac08a0d7d84ae89a9fe6a2422b61 (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
<?php
/** Telugu (Telugu)
  *
  * @package MediaWiki
  * @subpackage Language
  *
  * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
  */

require_once( 'LanguageUtf8.php' );

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

class LanguageTe extends LanguageUtf8 {
	private $mMessagesTe, $mNamespaceNamesTe = null;

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

		global $wgAllMessagesTe;
		$this->mMessagesTe =& $wgAllMessagesTe;

		global $wgMetaNamespace;
		$this->mNamespaceNamesTe = array(
			NS_MEDIA            => 'మీడియా',
			NS_SPECIAL          => 'ప్రత్యేక',
			NS_MAIN             => '',
			NS_TALK             => 'చర్చ',
			NS_USER             => 'సభ్యుడు',
			NS_USER_TALK        => 'సభ్యునిపై_చర్చ',
			NS_PROJECT          => $wgMetaNamespace,
			NS_PROJECT_TALK     => $wgMetaNamespace . '_చర్చ',
			NS_IMAGE            => 'బొమ్మ',
			NS_IMAGE_TALK       => 'బొమ్మపై_చర్చ',
			NS_MEDIAWIKI        => 'మీడియావికీ',
			NS_MEDIAWIKI_TALK   => 'మీడియావికీ_చర్చ',
			NS_TEMPLATE         => 'మూస',
			NS_TEMPLATE_TALK    => 'మూస_చర్చ',
			NS_HELP             => 'సహాయము',
			NS_HELP_TALK        => 'సహాయము_చర్చ',
			NS_CATEGORY         => 'వర్గం',
			NS_CATEGORY_TALK    => 'వర్గం_చర్చ'
		);

	}

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

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

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

	// nobody seems to use these anymore
	/*function digitTransformTable() {
		 
		return array(
			'0' => '౦',
			'1' => '౧',
			'2' => '౨',
			'3' => '౩',
			'4' => '౪',
			'5' => '౫',
			'6' => '౬',
			'7' => '౭',
			'8' => '౮',
			'9' => '౯'
		);
	}*/

}
?>