<?php
+/**
+ * @package MediaWiki
+ * @subpackage Language
+ */
require_once( "LanguageUtf8.php" );
-# NOTE: To turn off "Current Events" in the sidebar,
-# set "currentevents" => "-"
-
-# The names of the namespaces can be set here, but the numbers
-# are magical, so don't change or move them! The Namespace class
-# encapsulates some of the magic-ness.
-#
/* private */ $wgNamespaceNamesHi = array(
- -2 => "Media",
- -1 => "विशेष",
- 0 => "",
- 1 => "वार्ता",
- 2 => "सदस्य",
- 3 => "सदस्य_वार्ता",
- 4 => "विकिपीडिया",
- 5 => "विकिपीडिआ_वार्ता",
- 6 => "चित्र",
- 7 => "चित्र_वार्ता",
- 8 => "MediaWiki",
- 9 => "MediaWiki_talk",
- 10 => "Template",
- 11 => "Template_talk"
-
+ 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 => 'श्रेणी_वार्ता',
) + $wgNamespaceNamesEn;
/* private */ $wgAllMessagesHi = array(
-'special_version_prefix' => '',
-'special_version_postfix' => '',
# Dates
#
"linktrail" => "/^([a-z]+)(.*)\$/sD",
"mainpage" => "मुख्य पृष्ठ",
"about" => "अबाउट",
-"aboutwikipedia" => "विकिपीडिया के बारे में",
+"aboutsite" => "विकिपीडिया के बारे में",
"aboutpage" => "विकिपीडिया:अबाउट",
"help" => "सहायता",
"helppage" => "विकिपीडिया:सहायता",
-"wikititlesuffix" => "विकिपीडिया",
"bugreports" => "Bug reports",
"bugreportspage" => "विकिपीडिया:Bug_reports",
"faq" => "FAQ",
"currentevents" => "Current events",
"errorpagetitle" => "Error",
"returnto" => "लौटें $1.",
-"fromwikipedia" => "From Wikipedia, the free encyclopedia.",
+"tagline" => "From Wikipedia, the free encyclopedia.",
"whatlinkshere" => "Pages that link here",
"help" => "सहायता ",
"search" => "खोज ",
"redirectedfrom" => "($1 से भेजा गया)",
"lastmodified" => "अन्तिम परिवर्तन $1.",
"viewcount" => "यह पृष्ठ $1 बार देखा गया है",
-"gnunote" => "All text is available under the terms of the <a class=internal href='/wiki/GNU_FDL'>GNU Free Documentation License</a>.",
-"printsubtitle" => "(From http://www.wikipedia.org)",
+"printsubtitle" => "(From {{SERVER}})",
"protectedpage" => "सुरक्षित पृष्ठ",
"administrators" => "विकिपीडिया:प्रबन्धक",
"sysoptitle" => "sysop आवश्यक है",
return $wgNamespaceNamesHi;
}
- function getNsText( $index ) {
- global $wgNamespaceNamesHi;
- return $wgNamespaceNamesHi[$index];
- }
-
- function getNsIndex( $text ) {
- global $wgNamespaceNamesHi, $wgNamespaceNamesEn;
-
- foreach ( $wgNamespaceNamesHi as $i => $n ) {
- if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
- }
- # fallback
- foreach ( $wgNamespaceNamesEn as $i => $n ) {
- if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
- }
- return false;
- }
-
- function getMessage( $key )
- {
+ function getMessage( $key ) {
global $wgAllMessagesHi;
if(array_key_exists($key, $wgAllMessagesHi))
return $wgAllMessagesHi[$key];
else
- return Language::getMessage($key);
+ return parent::getMessage($key);
}
function formatNum( $number ) {
return $number;
}
}
+
}
?>