(bug 6565) Strict JavaScript writing
[lhc/web/wiklou.git] / languages / LanguageTe.php
1 <?php
2 /** Telugu (Telugu)
3 *
4 * @package MediaWiki
5 * @subpackage Language
6 *
7 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
8 */
9
10 require_once( 'LanguageUtf8.php' );
11
12 /*if (!$wgCachedMessageArrays) {
13 require_once('MessagesTe.php');
14 }*/
15
16 class LanguageTe extends LanguageUtf8 {
17 private $mMessagesTe, $mNamespaceNamesTe = null;
18
19 function __construct() {
20 parent::__construct();
21
22 /*global $wgAllMessagesTe;
23 $this->mMessagesTe =& $wgAllMessagesTe;*/
24
25 global $wgMetaNamespace;
26 $this->mNamespaceNamesTe = array(
27 NS_MEDIA => 'మీడియా',
28 NS_SPECIAL => 'ప్రత్యేక',
29 NS_MAIN => '',
30 NS_TALK => 'చర్చ',
31 NS_USER => 'సభ్యుడు',
32 NS_USER_TALK => 'సభ్యునిపై_చర్చ',
33 NS_PROJECT => $wgMetaNamespace,
34 NS_PROJECT_TALK => $wgMetaNamespace . '_చర్చ',
35 NS_IMAGE => 'బొమ్మ',
36 NS_IMAGE_TALK => 'బొమ్మపై_చర్చ',
37 NS_MEDIAWIKI => 'మీడియావికీ',
38 NS_MEDIAWIKI_TALK => 'మీడియావికీ_చర్చ',
39 NS_TEMPLATE => 'మూస',
40 NS_TEMPLATE_TALK => 'మూస_చర్చ',
41 NS_HELP => 'సహాయము',
42 NS_HELP_TALK => 'సహాయము_చర్చ',
43 NS_CATEGORY => 'వర్గం',
44 NS_CATEGORY_TALK => 'వర్గం_చర్చ'
45 );
46
47 }
48
49 function getNamespaces() {
50 return $this->mNamespaceNamesTe + parent::getNamespaces();
51 }
52
53 function getMessage( $key ) {
54 if( isset( $this->mMessagesTe[$key] ) ) {
55 return $this->mMessagesTe[$key];
56 } else {
57 return parent::getMessage( $key );
58 }
59 }
60
61 function getAllMessages() {
62 return $this->mMessagesTe;
63 }
64
65 // nobody seems to use these anymore
66 /*function digitTransformTable() {
67
68 return array(
69 '0' => '౦',
70 '1' => '౧',
71 '2' => '౨',
72 '3' => '౩',
73 '4' => '౪',
74 '5' => '౫',
75 '6' => '౬',
76 '7' => '౭',
77 '8' => '౮',
78 '9' => '౯'
79 );
80 }*/
81
82 }
83 ?>