Replace imho ugly viewsourcefor subtitle with viewsourcetitle and viewsourceheader...
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 28 Sep 2010 10:04:22 +0000 (10:04 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 28 Sep 2010 10:04:22 +0000 (10:04 +0000)
includes/OutputPage.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index a32b04e..2c9e064 100644 (file)
@@ -1992,10 +1992,10 @@ class OutputPage {
                if ( !empty( $reasons ) ) {
                        // Permissions error
                        if( $source ) {
-                               $this->setPageTitle( wfMsg( 'viewsource' ) );
-                               $this->setSubtitle(
-                                       wfMsg( 'viewsourcefor', $skin->linkKnown( $this->getTitle() ) )
-                               );
+                               $title = $this->getTitle();
+                               $link = $skin->linkKnown( $title );
+                               $this->mPagetitle = wfMessage( 'viewsourceheader' )->rawParams( $link )->escaped();
+                               $this->mHTMLtitle = wfMessage( 'viewsourcetitle', $title->getPrefixedText() )->escaped();
                        } else {
                                $this->setPageTitle( wfMsg( 'badaccess' ) );
                        }
index 7effc7d..a843341 100644 (file)
@@ -1002,8 +1002,8 @@ Data here will not presently be refreshed.',
 'wrong_wfQuery_params' => 'Incorrect parameters to wfQuery()<br />
 Function: $1<br />
 Query: $2',
-'viewsource'           => 'View source',
-'viewsourcefor'        => 'for $1',
+'viewsourcetitle'      => 'Source for page $1',
+'viewsourceheader'     => 'Source for page $1',
 'actionthrottled'      => 'Action throttled',
 'actionthrottledtext'  => 'As an anti-spam measure, you are limited from performing this action too many times in a short space of time, and you have exceeded this limit.
 Please try again in a few minutes.',
index f9e2195..0147d6b 100644 (file)
@@ -369,8 +369,8 @@ $wgMessageStructure = array(
                'perfcachedts',
                'querypage-no-updates',
                'wrong_wfQuery_params',
-               'viewsource',
-               'viewsourcefor',
+               'viewsourcetitle',
+               'viewsourceheader',
                'actionthrottled',
                'actionthrottledtext',
                'protectedpagetext',