7 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
10 require_once( 'LanguageUtf8.php' );
12 if (!$wgCachedMessageArrays) {
13 require_once('MessagesTe.php');
16 class LanguageTe
extends LanguageUtf8
{
17 private $mMessagesTe, $mNamespaceNamesTe = null;
19 function __construct() {
20 parent
::__construct();
22 global $wgAllMessagesTe;
23 $this->mMessagesTe
=& $wgAllMessagesTe;
25 global $wgMetaNamespace;
26 $this->mNamespaceNamesTe
= array(
28 NS_SPECIAL
=> 'ప్రత్యేక',
32 NS_USER_TALK
=> 'సభ్యునిపై_చర్చ',
33 NS_PROJECT
=> $wgMetaNamespace,
34 NS_PROJECT_TALK
=> $wgMetaNamespace . '_చర్చ',
36 NS_IMAGE_TALK
=> 'బొమ్మపై_చర్చ',
37 NS_MEDIAWIKI
=> 'మీడియావికీ',
38 NS_MEDIAWIKI_TALK
=> 'మీడియావికీ_చర్చ',
40 NS_TEMPLATE_TALK
=> 'మూస_చర్చ',
42 NS_HELP_TALK
=> 'సహాయము_చర్చ',
43 NS_CATEGORY
=> 'వర్గం',
44 NS_CATEGORY_TALK
=> 'వర్గం_చర్చ'
49 function getNamespaces() {
50 return $this->mNamespaceNamesTe + parent
::getNamespaces();
53 function getMessage( $key ) {
54 if( isset( $this->mMessagesTe
[$key] ) ) {
55 return $this->mMessagesTe
[$key];
57 return parent
::getMessage( $key );
61 function getAllMessages() {
62 return $this->mMessagesTe
;
65 function linkTrail() {
66 /* Range from U+0C01 to U+0C6F */
67 return "/^([\xE0\xB0\x81-\xE0\xB1\xAF]+)(.*)$/sDu";
70 // nobody seems to use these anymore
71 /*function digitTransformTable() {