Added conversion when displaying results
authorZheng Zhu <zhengzhu@users.mediawiki.org>
Mon, 2 May 2005 03:18:31 +0000 (03:18 +0000)
committerZheng Zhu <zhengzhu@users.mediawiki.org>
Mon, 2 May 2005 03:18:31 +0000 (03:18 +0000)
includes/SpecialUnusedimages.php
includes/SpecialWantedpages.php

index 57ac474..c4d7d2a 100644 (file)
@@ -58,7 +58,7 @@ class UnusedimagesPage extends QueryPage {
                # Link to username
                . ' . . '.$skin->makeLinkObj( Title::makeTitle( NS_USER, $result->img_user_text ), $result->img_user_text)
                # If there is a description, show it
-               . $skin->commentBlock( $result->img_description );
+               . $skin->commentBlock( $wgContLang->convert( $result->img_description ) );
                
                return $return;
        }
index e345703..1cbd8bb 100644 (file)
@@ -47,10 +47,11 @@ class WantedPagesPage extends QueryPage {
                global $wgContLang;
 
                $nt = Title::newFromDBkey( $result->title );
+               $text = $wgContLang->convert( $result->title );
                if( is_null( $nt ) ) {
                        return "<!-- Bad title '" . htmlspecialchars( $result->title ) . "' -->";
                }
-               $plink = $skin->makeBrokenLink( $nt->getPrefixedText(), "" );
+               $plink = $skin->makeBrokenLink( $nt->getPrefixedText(), $text );
                $nl = wfMsg( "nlinks", $result->value );
                $nlink = $skin->makeKnownLink( $wgContLang->specialPage( "Whatlinkshere" ), $nl,
                  "target=" . $nt->getPrefixedURL() );