From: Niklas Laxström Date: Sat, 23 Dec 2006 18:30:36 +0000 (+0000) Subject: * Fix some plurals X-Git-Tag: 1.31.0-rc.0~54788 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=0137e658903521238d7ca83a2f7234be15e29931;p=lhc%2Fweb%2Fwiklou.git * Fix some plurals --- diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index 987afa3ee1..6200738357 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -96,8 +96,8 @@ class NewPagesPage extends QueryPage { $time = $wgLang->timeAndDate( $result->timestamp, true ); $plink = $skin->makeKnownLinkObj( $title, '', $this->patrollable( $result ) ? 'rcid=' . $result->rcid : '' ); $hist = $skin->makeKnownLinkObj( $title, wfMsgHtml( 'hist' ), 'action=history' ); - $length = wfMsgHtml( 'nbytes', $wgLang->formatNum( htmlspecialchars( $result->length ) ) ); - $ulink = $skin->userLink( $result->user, $result->user_text ) . $skin->userToolLinks( $result->user, $result->user_text ); + $length = wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ), $wgLang->formatNum( htmlspecialchars( $result->length ) ) ); + $ulink = $skin->userLink( $result->user, $result->user_text ) . ' ' . $skin->userToolLinks( $result->user, $result->user_text ); $comment = $skin->commentBlock( $result->comment ); return "{$time} {$dm}{$plink} ({$hist}) {$dm}[{$length}] {$dm}{$ulink} {$comment}"; diff --git a/includes/SpecialShortpages.php b/includes/SpecialShortpages.php index 0073f88aca..03164debde 100644 --- a/includes/SpecialShortpages.php +++ b/includes/SpecialShortpages.php @@ -72,7 +72,7 @@ class ShortPagesPage extends QueryPage { $plink = $this->isCached() ? $skin->makeLinkObj( $title ) : $skin->makeKnownLinkObj( $title ); - $size = wfMsgHtml( 'nbytes', $wgLang->formatNum( htmlspecialchars( $result->value ) ) ); + $size = wfMsgExt( 'nbytes', array( 'parsemag', 'escape' ), $wgLang->formatNum( htmlspecialchars( $result->value ) ) ); return $title->exists() ? "({$hlink}) {$dm}{$plink} {$dm}[{$size}]"