* Really support plural in imagelisttext
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 29 Jun 2006 12:51:28 +0000 (12:51 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 29 Jun 2006 12:51:28 +0000 (12:51 +0000)
includes/SpecialImagelist.php
includes/SpecialNewimages.php

index b797216..e456abf 100644 (file)
@@ -42,7 +42,7 @@ function wfSpecialImagelist() {
        $sql .= " LIMIT {$limit}";
 
        $wgOut->addWikiText( wfMsg( 'imglegend' ) );
-       $wgOut->addWikiText( wfMsg( 'imagelisttext', $lt, wfMsg( $sort ) ) );
+       $wgOut->addHTML( wfMsgExt( 'imagelisttext', array('parse'), $lt, wfMsg( $sort ) ) );
 
        $sk = $wgUser->getSkin();
        $titleObj = Title::makeTitle( NS_SPECIAL, "Imagelist" );
index c20f23b..976611a 100644 (file)
@@ -145,8 +145,8 @@ function wfSpecialNewimages( $par, $specialPage ) {
        $bydate = wfMsg( 'bydate' );
        $lt = $wgLang->formatNum( min( $shownImages, $limit ) );
        if ($shownav) {
-               $text = wfMsg( 'imagelisttext', $lt, $bydate );
-               $wgOut->addHTML( "<p>{$text}\n</p>" );
+               $text = wfMsgExt( 'imagelisttext', array('parse'), $lt, $bydate );
+               $wgOut->addHTML( $text . "\n" );
        }
 
        $sub = wfMsg( 'ilsubmit' );