7 require_once( "LanguageUtf8.php" );
9 /* private */ $wgNamespaceNamesHi = array(
11 NS_SPECIAL
=> 'विशेष',
15 NS_USER_TALK
=> 'सदस्य_वार्ता',
16 NS_PROJECT
=> $wgMetaNamespace,
17 NS_PROJECT_TALK
=> $wgMetaNamespace . '_वार्ता',
19 NS_IMAGE_TALK
=> 'चित्र_वार्ता',
20 NS_MEDIAWIKI
=> 'MediaWiki',
21 NS_MEDIAWIKI_TALK
=> 'MediaWiki_talk',
22 NS_TEMPLATE
=> 'Template',
23 NS_TEMPLATE_TALK
=> "Template_talk",
24 NS_CATEGORY
=> 'श्रेणी',
25 NS_CATEGORY_TALK
=> 'श्रेणी_वार्ता',
26 ) +
$wgNamespaceNamesEn;
28 if (!$wgCachedMessageArrays) {
29 require_once('MessagesHi.php');
33 class LanguageHi
extends LanguageUtf8
{
34 var $digitTransTable = array(
47 function getNamespaces() {
48 global $wgNamespaceNamesHi;
49 return $wgNamespaceNamesHi;
52 function getMessage( $key ) {
53 global $wgAllMessagesHi;
54 if(array_key_exists($key, $wgAllMessagesHi))
55 return $wgAllMessagesHi[$key];
57 return parent
::getMessage($key);
60 function formatNum( $number ) {
61 global $wgTranslateNumerals;
62 if( $wgTranslateNumerals ) {
63 return strtr( $number, $this->digitTransTable
);