* (bug 5432) Fix inconsistencies in cookie names when using table prefixes
[mediawiki.git] / languages / LanguageHi.php
blob034f313610258c3dedd519bea699c0ccf2cfcbf4
1 <?php
2 /**
3 * @package MediaWiki
4 * @subpackage Language
5 */
7 require_once( "LanguageUtf8.php" );
9 /* private */ $wgNamespaceNamesHi = array(
10 NS_MEDIA => 'Media',
11 NS_SPECIAL => 'विशेष',
12 NS_MAIN => '',
13 NS_TALK => 'वार्ता',
14 NS_USER => 'सदस्य',
15 NS_USER_TALK => 'सदस्य_वार्ता',
16 NS_PROJECT => $wgMetaNamespace,
17 NS_PROJECT_TALK => $wgMetaNamespace . '_वार्ता',
18 NS_IMAGE => 'चित्र',
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(
35 "0" => "०",
36 "1" => "१",
37 "2" => "२",
38 "3" => "३",
39 "4" => "४",
40 "5" => "५",
41 "6" => "६",
42 "7" => "७",
43 "8" => "८",
44 "9" => "९"
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];
56 else
57 return parent::getMessage($key);
60 function formatNum( $number ) {
61 global $wgTranslateNumerals;
62 if( $wgTranslateNumerals ) {
63 return strtr( $number, $this->digitTransTable );
64 } else {
65 return $number;