Cleanup image description page a bit:
authorRaimond Spekking <raymond@users.mediawiki.org>
Mon, 16 Feb 2009 08:51:38 +0000 (08:51 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Mon, 16 Feb 2009 08:51:38 +0000 (08:51 +0000)
* Remove the link to Special:FileDuplicateSearch from the "file history" section
  of image description pages as the list of duplicated files is shown in the
  next section anyway.
* Add the link to Special:FileDuplicateSearch to the message 'duplicatesoffile'

RELEASE-NOTES
includes/ImagePage.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index eac9d97..5bb7bd5 100644 (file)
@@ -103,6 +103,9 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Wrap warning message 'editinginterface' into a div with class
   'mw-editinginterface'
 * (bug 17497) Oasis opendocument added to mime.types
+* Remove the link to Special:FileDuplicateSearch from the "file history" section
+  of image description pages as the list of duplicated files is shown in the 
+  next section anyway.
 
 === Bug fixes in 1.15 ===
 * (bug 16968) Special:Upload no longer throws useless warnings.
index fb4fe24..1dc6fd6 100644 (file)
@@ -577,10 +577,6 @@ EOT
                        $wgOut->addHTML( "<li><div class='plainlinks'>{$ulink}</div></li>" );
                }
 
-               # Link to Special:FileDuplicateSearch
-               $dupeLink = $sk->makeKnownLinkObj( SpecialPage::getTitleFor( 'FileDuplicateSearch', $this->mTitle->getDBkey() ), wfMsgHtml( 'imagepage-searchdupe' ) );
-               $wgOut->addHTML( "<li>{$dupeLink}</li>" );
-
                # External editing link
                $elink = $sk->makeKnownLinkObj( $this->mTitle, wfMsgHtml( 'edit-externally' ), 'action=edit&externaledit=true&mode=file' );
                $wgOut->addHTML( '<li>' . $elink . ' <small>' . wfMsgExt( 'edit-externally-help', array( 'parseinline' ) ) . '</small></li>' );
@@ -694,7 +690,7 @@ EOT
 
                $wgOut->addHTML( "<div id='mw-imagepage-section-duplicates'>\n" );
                $wgOut->addWikiMsg( 'duplicatesoffile',
-                       $wgLang->formatNum( count( $dupes ) )
+                       $wgLang->formatNum( count( $dupes ) ), $this->mTitle->getDBkey()
                );
                $wgOut->addHTML( "<ul class='mw-imagepage-duplicates'>\n" );
 
index c5bb7bd..f5513e6 100644 (file)
@@ -1980,7 +1980,7 @@ A [[Special:WhatLinksHere/$2|full list]] is available.',
 'nolinkstoimage'                 => 'There are no pages that link to this file.',
 'morelinkstoimage'               => 'View [[Special:WhatLinksHere/$1|more links]] to this file.',
 'redirectstofile'                => 'The following {{PLURAL:$1|file redirects|$1 files redirect}} to this file:',
-'duplicatesoffile'               => 'The following {{PLURAL:$1|file is a duplicate|$1 files are duplicates}} of this file:',
+'duplicatesoffile'               => 'The following {{PLURAL:$1|file is a duplicate|$1 files are duplicates}} of this file ([[Special:FileDuplicateSearch/$2|more details]]):',
 'sharedupload'                   => 'This file is a shared upload and may be used by other projects.',
 'shareduploadwiki'               => 'Please see the $1 for further information.',
 'shareduploadwiki-desc'          => 'The description on its $1 on the shared repository is shown below.',
@@ -1993,7 +1993,6 @@ A [[Special:WhatLinksHere/$2|full list]] is available.',
 'noimage'                        => 'No file by this name exists, but you can $1.',
 'noimage-linktext'               => 'upload one',
 'uploadnewversion-linktext'      => 'Upload a new version of this file',
-'imagepage-searchdupe'           => 'Search for duplicate files',
 
 # File reversion
 'filerevert'                => 'Revert $1',
index 0172777..7ed875d 100644 (file)
@@ -1250,7 +1250,6 @@ $wgMessageStructure = array(
                'noimage',
                'noimage-linktext',
                'uploadnewversion-linktext',
-               'imagepage-searchdupe',
        ),
        'filerevert' => array(
                'filerevert',