Short formats are not used in Finnish
[lhc/web/wiklou.git] / languages / LanguageHi.php
index cc03956..5270458 100644 (file)
@@ -1,36 +1,32 @@
 <?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
 #
@@ -71,11 +67,10 @@ require_once( "LanguageUtf8.php" );
 "linktrail"            => "/^([a-z]+)(.*)\$/sD",
 "mainpage"             => "मुख्य पृष्ठ",
 "about"                        => "अबाउट",
-"aboutwikipedia"        => "विकिपीडिया के बारे में",
+"aboutsite"             => "विकिपीडिया के बारे में",
 "aboutpage"            => "विकिपीडिया:अबाउट",
 "help"                 => "सहायता",
 "helppage"             => "विकिपीडिया:सहायता",
-"wikititlesuffix"       => "विकिपीडिया",
 "bugreports"           => "Bug reports",
 "bugreportspage"        => "विकिपीडिया:Bug_reports",
 "faq"                  => "FAQ",
@@ -94,7 +89,7 @@ require_once( "LanguageUtf8.php" );
 "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"               => "खोज ",
@@ -117,8 +112,7 @@ require_once( "LanguageUtf8.php" );
 "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 आवश्यक है",
@@ -174,31 +168,12 @@ class LanguageHi extends LanguageUtf8 {
                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 ) {
@@ -209,6 +184,7 @@ class LanguageHi extends LanguageUtf8 {
                        return $number;
                }
        }
+
 }
 
 ?>