return $block;
}
+ public function formatRevisionSize( $size ) {
+ if ( $size == 0 ) {
+ $stxt = wfMsgExt( 'historyempty', 'parsemag' );
+ } else {
+ $stxt = wfMsgExt( 'nbytes', 'parsemag', $wgLang->formatNum( $size ) );
+ $stxt = "($stxt)";
+ }
+ $stxt = htmlspecialchars( $stxt );
+ return "<span class=\"history-size\">$stxt</span>";
+ }
+
/** @todo document */
function tocIndent() {
return "\n<ul>";
}
if ( !is_null( $size = $rev->getSize() ) && $rev->userCan( Revision::DELETED_TEXT ) ) {
- if ( $size == 0 ) {
- $stxt = wfMsg( 'historyempty' );
- } else {
- $stxt = wfMsg( 'nbytes', $wgLang->formatNum( $size ) );
- $stxt = "($stxt)";
- }
- $stxt = htmlspecialchars( $stxt );
- $s .= " <span class=\"history-size\">$stxt</span>";
+ $s .= ' ' . $this->mSkin->formatRevisionSize( $size );
}
$s .= $this->mSkin->revComment( $rev, false, true );
$userLink = $this->sk->revUserTools( $rev );
if(!is_null($size = $row->rev_len)) {
- if($size == 0) {
- $stxt = wfMsg('historyempty');
- } else {
- $stxt = wfMsg('nbytes', $wgLang->formatNum( $size ) );
- $stxt = "($stxt)";
- }
- $stxt = htmlspecialchars( $stxt );
+ $stxt = $this->sk->formatRevisionSize( $size );
}
$comment = $this->sk->revComment( $rev );
}
if (!is_null($size = $row->page_len)) {
- if ($size == 0) {
- $stxt = wfMsg('historyempty');
- } else {
- $stxt = wfMsg('nbytes', $wgLang->formatNum( $size ) );
- $stxt = "($stxt)";
- }
- $stxt = htmlspecialchars( $stxt );
- $stxt = $wgContLang->getDirMark() . ' ' . $stxt;
+ $stxt = $wgContLang->getDirMark() . ' ' . $skin->formatRevisionSize( $size );
}
# Show a link to the change protection form for allowed users otherwise a link to the protection log
$data = wfMsg( 'widthheight',
$wgLang->formatNum( $file->getWidth() ),
$wgLang->formatNum( $file->getHeight() ) ) .
- ' (' . wfMsg( 'nbytes', $wgLang->formatNum( $file->getSize() ) ) . ')';
+ ' (' . wfMsgExt( 'nbytes', 'parsemag', $wgLang->formatNum( $file->getSize() ) ) . ')';
$data = htmlspecialchars( $data );
return "<li>$pageLink ".$this->fileUserTools( $file )." $data ".$this->fileComment( $file )."$del</li>";
$data = wfMsg( 'widthheight',
$wgLang->formatNum( $file->getWidth() ),
$wgLang->formatNum( $file->getHeight() ) ) .
- ' (' . wfMsg( 'nbytes', $wgLang->formatNum( $file->getSize() ) ) . ')';
+ ' (' . wfMsgExt( 'nbytes', 'parsemag', $wgLang->formatNum( $file->getSize() ) ) . ')';
$data = htmlspecialchars( $data );
return "<li> $pageLink ".$this->fileUserTools( $file )." $data ".$this->fileComment( $file )."$del</li>";
$userLink = $sk->revUserTools( $rev );
if(!is_null($size = $row->ar_len)) {
- if($size == 0) {
- $stxt = wfMsg('historyempty');
- } else {
- $stxt = '(' . wfMsg('nbytes', $wgLang->formatNum( $size ) ) . ')';
- }
- $stxt = htmlspecialchars( $stxt );
+ $stxt = $sk->formatRevisionSize( $size );
}
$comment = $sk->revComment( $rev );
$revdlink = '';