http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73879

Revision: 73879
Author:   nikerabbit
Date:     2010-09-28 10:04:22 +0000 (Tue, 28 Sep 2010)

Log Message:
-----------
Replace imho ugly viewsourcefor subtitle with viewsourcetitle and 
viewsourceheader (for <title> and <h1> respectively).

Modified Paths:
--------------
    trunk/phase3/includes/OutputPage.php
    trunk/phase3/languages/messages/MessagesEn.php
    trunk/phase3/maintenance/language/messages.inc

Modified: trunk/phase3/includes/OutputPage.php
===================================================================
--- trunk/phase3/includes/OutputPage.php        2010-09-28 09:39:04 UTC (rev 
73878)
+++ trunk/phase3/includes/OutputPage.php        2010-09-28 10:04:22 UTC (rev 
73879)
@@ -1992,10 +1992,10 @@
                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' ) );
                        }

Modified: trunk/phase3/languages/messages/MessagesEn.php
===================================================================
--- trunk/phase3/languages/messages/MessagesEn.php      2010-09-28 09:39:04 UTC 
(rev 73878)
+++ trunk/phase3/languages/messages/MessagesEn.php      2010-09-28 10:04:22 UTC 
(rev 73879)
@@ -1002,8 +1002,8 @@
 '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.',

Modified: trunk/phase3/maintenance/language/messages.inc
===================================================================
--- trunk/phase3/maintenance/language/messages.inc      2010-09-28 09:39:04 UTC 
(rev 73878)
+++ trunk/phase3/maintenance/language/messages.inc      2010-09-28 10:04:22 UTC 
(rev 73879)
@@ -369,8 +369,8 @@
                'perfcachedts',
                'querypage-no-updates',
                'wrong_wfQuery_params',
-               'viewsource',
-               'viewsourcefor',
+               'viewsourcetitle',
+               'viewsourceheader',
                'actionthrottled',
                'actionthrottledtext',
                'protectedpagetext',



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to