* @return string
*/
function getShortDesc( $file ) {
- return wfMessage( 'nbytes' )->numParams( $file->getSize() )->escaped();
+ global $wgLang;
+ return $wgLang->formatSize( $file->getSize() );
}
/**
* @return string
*/
static function getGeneralShortDesc( $file ) {
- return wfMessage( 'nbytes' )->numParams( $file->getSize() )->escaped();
+ global $wgLang;
+ return $wgLang->formatSize( $file->getSize() );
}
/**
* @return string
*/
function getShortDesc( $file ) {
- $nbytes = wfMessage( 'nbytes' )->numParams( $file->getSize() )->escaped();
+ global $wgLang;
+ $nbytes = $wgLang->formatSize( $file->getSize() );
$widthheight = wfMessage( 'widthheight' )->numParams( $file->getWidth(), $file->getHeight() )->escaped();
return "$widthheight ($nbytes)";