Revert r28136; overlong title prefix obscures page title in tabs, window lists, etc
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 4 Dec 2007 20:47:52 +0000 (20:47 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 4 Dec 2007 20:47:52 +0000 (20:47 +0000)
RELEASE-NOTES
includes/DifferenceEngine.php
languages/messages/MessagesDe.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index 4b59dc7..57fdaa2 100644 (file)
@@ -86,7 +86,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Show a warning message when creating/editing a user (talk) page but the user
   does not exists
 * (bug 8396) Ignore out-of-date serialised message caches
-* Add descriptive <title> to revision difference page
 * (bug 12195) Undeleting pages now requires 'undelete' permission
 
 === Bug fixes in 1.12 ===
index 3095873..b3bf19a 100644 (file)
@@ -72,10 +72,6 @@ class DifferenceEngine {
                $this->mRefreshCache = $refreshCache;
        }
 
-       /**
-        * Show difference between revisions
-        * @param $diffOnly bool show the difference only, no preview
-        */
        function showDiffPage( $diffOnly = false ) {
                global $wgUser, $wgOut, $wgUseExternalEditor, $wgUseRCPatrol;
                $fname = 'DifferenceEngine::showDiffPage';
@@ -130,7 +126,6 @@ CONTROL;
                # a diff between a version V and its previous version V' AND the version V
                # is the first version of that article. In that case, V' does not exist.
                if ( $this->mOldid === false ) {
-                       $wgOut->setPageTitle( wfMsg( 'difference-title', $this->mTitle->getPrefixedText() ) );
                        $this->showFirstRevision();
                        $this->renderNewRevision();  // should we respect $diffOnly here or not?
                        wfProfileOut( $fname );
@@ -142,10 +137,11 @@ CONTROL;
                $oldTitle = $this->mOldPage->getPrefixedText();
                $newTitle = $this->mNewPage->getPrefixedText();
                if( $oldTitle == $newTitle ) {
-                       $wgOut->setPageTitle( wfMsg( 'difference-title', $newTitle ) );
+                       $wgOut->setPageTitle( $newTitle );
                } else {
-                       $wgOut->setPageTitle( wfMsg( 'difference-title', $oldTitle . ', ' . $newTitle ) );
+                       $wgOut->setPageTitle( $oldTitle . ', ' . $newTitle );
                }
+               $wgOut->setSubtitle( wfMsg( 'difference' ) );
                $wgOut->setRobotpolicy( 'noindex,nofollow' );
 
                if ( !( $this->mOldPage->userCanRead() && $this->mNewPage->userCanRead() ) ) {
@@ -370,6 +366,7 @@ CONTROL;
 
                $wgOut->addHTML( $header );
 
+               $wgOut->setSubtitle( wfMsg( 'difference' ) );
                $wgOut->setRobotpolicy( 'noindex,nofollow' );
 
                wfProfileOut( $fname );
@@ -2015,3 +2012,6 @@ class TableDiffFormatter extends DiffFormatter
                wfProfileOut( $fname );
        }
 }
+
+
+
index 7b6c906..f559fc3 100644 (file)
@@ -876,7 +876,7 @@ Stelle dadurch sicher, dass die Versionsgeschichte eines Artikel historisch korr
 
 # Diffs
 'history-title'             => 'Versionsgeschichte von „$1“',
-'difference-title'          => 'Versionsunterschied: „$1“',
+'difference'                => '(Unterschied zwischen Versionen)',
 'lineno'                    => 'Zeile $1:',
 'compareselectedversions'   => 'Gewählte Versionen vergleichen',
 'editundo'                  => 'rückgängig',
@@ -1035,7 +1035,6 @@ Nicht selektierte Gruppen werden nicht geändert. Eine Selektion kann mit '''Str
 'rc_categories_any'                 => 'Alle',
 'rc-change-size'                    => '$1 {{PLURAL:$1|Byte|Bytes}}',
 'newsectionsummary'                 => 'Neuer Abschnitt /* $1 */',
-'difference'                        => '(Unterschied zwischen Versionen)',
 
 # Recent changes linked
 'recentchangeslinked'          => 'Änderungen an verlinkten Seiten',
index 41474e4..6fd29e4 100644 (file)
@@ -1215,7 +1215,7 @@ Make sure that this change will maintain historical page continuity.
 
 # Diffs
 'history-title'             => 'Revision history of "$1"',
-'difference-title'          => 'Difference between revisions of "$1"',
+'difference'                => '(Difference between revisions)',
 'lineno'                    => 'Line $1:',
 'compareselectedversions'   => 'Compare selected versions',
 'editundo'                  => 'undo',
@@ -1389,7 +1389,6 @@ Unselected groups will not be changed. You can deselect a group with CTRL + Left
 'rc_categories_any'                 => 'Any',
 'rc-change-size'                    => '$1', # only translate this message to other languages if you have to change it
 'newsectionsummary'                 => '/* $1 */ new section',
-'difference'                        => '(Difference between revisions)',
 
 # Recent changes linked
 'recentchangeslinked'          => 'Related changes',
index 56fe05f..1018dfe 100644 (file)
@@ -639,7 +639,7 @@ $wgMessageStructure = array(
        ),
        'diffs' => array(
                'history-title',
-               'difference-title',
+               'difference',
                'lineno',
                'compareselectedversions',
                'editundo',
@@ -798,7 +798,6 @@ $wgMessageStructure = array(
                'rc_categories_any',
                'rc-change-size',
                'newsectionsummary',
-               'difference',
        ),
        'recentchangeslinked' => array(
                'recentchangeslinked',