* Fix regression in LinkBatch.php breaking PHP 5.0
* (bug 11452) wfMsgExt uses sometimes wrong language object for parsing magic
words when called with options ''parsemag'' or ''content''.
+* (bug 11727) Support plural in 'historysize' message
=== API changes in 1.12 ===
$s .= ' ' . wfElement( 'span', array( 'class' => 'minor' ), wfMsg( 'minoreditletter') );
}
- if (!is_null($size = $rev->getSize())) {
- if ($size == 0)
- $stxt = wfMsgHtml('historyempty');
+ if ( !is_null( $size = $rev->getSize() ) ) {
+ if ( $size == 0 )
+ $stxt = wfMsgHtml( 'historyempty' );
else
- $stxt = wfMsgHtml('historysize', $wgLang->formatNum( $size ) );
+ $stxt = wfMsgExt( 'historysize', array( 'parsemag' ), $wgLang->formatNum( $size ) );
$s .= " <span class=\"history-size\">$stxt</span>";
}
'deletedrev' => '[gelöscht]',
'histfirst' => 'Älteste',
'histlast' => 'Neueste',
-'historysize' => '($1 Bytes)',
+'historysize' => '({{PLURAL:$1|1 Byte|$1 Bytes}})',
'historyempty' => '(leer)',
# Revision feed
'deletedrev' => '[deleted]',
'histfirst' => 'Earliest',
'histlast' => 'Latest',
-'historysize' => '($1 bytes)',
+'historysize' => '({{PLURAL:$1|1 byte|$1 bytes}})',
'historyempty' => '(empty)',
# Revision feed