* Display the "blanknamespace" in user's language, as in all other places
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 17 Apr 2011 14:14:52 +0000 (14:14 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 17 Apr 2011 14:14:52 +0000 (14:14 +0000)
* Don't transform it since this will be done by the addWikiMsg() call

includes/specials/SpecialRandompage.php

index fecd355..aaa2206 100644 (file)
@@ -86,7 +86,7 @@ class RandomPage extends SpecialPage {
                $nsNames = array();
                foreach( $this->namespaces as $n ) {
                        if( $n === NS_MAIN ) {
-                               $nsNames[] = wfMsgForContent( 'blanknamespace' );
+                               $nsNames[] = wfMsgNoTrans( 'blanknamespace' );
                        } else {
                                $nsNames[] = $wgContLang->getNsText( $n );
                        }