Follow-up for bug 12723 -- use the opensearch-desc message for the link as well as...
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 2 Mar 2008 21:19:44 +0000 (21:19 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 2 Mar 2008 21:19:44 +0000 (21:19 +0000)
includes/Skin.php

index 1e62028..230b642 100644 (file)
@@ -153,7 +153,7 @@ class Skin extends Linker {
        }
 
        function initPage( &$out ) {
-               global $wgFavicon, $wgAppleTouchIcon, $wgScriptPath, $wgSitename, $wgContLang, $wgScriptExtension;
+               global $wgFavicon, $wgAppleTouchIcon, $wgScriptPath, $wgScriptExtension;
 
                wfProfileIn( __METHOD__ );
 
@@ -165,16 +165,12 @@ class Skin extends Linker {
                        $out->addLink( array( 'rel' => 'apple-touch-icon', 'href' => $wgAppleTouchIcon ) );
                }               
 
-               $code = $wgContLang->getCode();
-               $name = $wgContLang->getLanguageName( $code );
-               $langName = $name ? $name : $code;
-
                # OpenSearch description link
                $out->addLink( array( 
                        'rel' => 'search', 
                        'type' => 'application/opensearchdescription+xml',
                        'href' => "$wgScriptPath/opensearch_desc{$wgScriptExtension}",
-                       'title' => "$wgSitename ($langName)",
+                       'title' => wfMsgForContent( 'opensearch-desc' ),
                ));
 
                $this->addMetadataLinks($out);