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
|
<?php
/** Hindi (हिन्दी)
*
* @package MediaWiki
* @subpackage Language
*
* @author Niklas Laxström
*/
require_once( 'LanguageUtf8.php' );
if (!$wgCachedMessageArrays) {
require_once('MessagesHi.php');
}
class LanguageHi extends LanguageUtf8 {
private $mMessagesHi, $mNamespaceNamesHi = null;
function __construct() {
parent::__construct();
global $wgAllMessagesHi;
$this->mMessagesHi =& $wgAllMessagesHi;
global $wgMetaNamespace;
$this->mNamespaceNamesHi = array(
NS_MEDIA => '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 => 'MediaWiki',
NS_MEDIAWIKI_TALK => 'MediaWiki_talk',
NS_TEMPLATE => 'Template',
NS_TEMPLATE_TALK => 'Template_talk',
NS_CATEGORY => 'श्रेणी',
NS_CATEGORY_TALK => 'श्रेणी_वार्ता',
);
}
function getNamespaces() {
return $this->mNamespaceNamesHi + parent::getNamespaces();
}
function getMessage( $key ) {
if( isset( $this->mMessagesHi[$key] ) ) {
return $this->mMessagesHi[$key];
} else {
return parent::getMessage( $key );
}
}
function getAllMessages() {
return $this->mMessagesHi;
}
function digitTransformTable() {
return array(
"0" => "०",
"1" => "१",
"2" => "२",
"3" => "३",
"4" => "४",
"5" => "५",
"6" => "६",
"7" => "७",
"8" => "८",
"9" => "९"
);
}
}
?>
|