Index: trunk/phase3/includes/media/Generic.php |
— | — | @@ -404,7 +404,8 @@ |
405 | 405 | * @return string |
406 | 406 | */ |
407 | 407 | function getShortDesc( $file ) { |
408 | | - return wfMessage( 'nbytes' )->numParams( $file->getSize() )->escaped(); |
| 408 | + global $wgLang; |
| 409 | + return $wgLang->formatSize( $file->getSize() ); |
409 | 410 | } |
410 | 411 | |
411 | 412 | /** |
— | — | @@ -422,7 +423,8 @@ |
423 | 424 | * @return string |
424 | 425 | */ |
425 | 426 | static function getGeneralShortDesc( $file ) { |
426 | | - return wfMessage( 'nbytes' )->numParams( $file->getSize() )->escaped(); |
| 427 | + global $wgLang; |
| 428 | + return $wgLang->formatSize( $file->getSize() ); |
427 | 429 | } |
428 | 430 | |
429 | 431 | /** |
— | — | @@ -707,7 +709,8 @@ |
708 | 710 | * @return string |
709 | 711 | */ |
710 | 712 | function getShortDesc( $file ) { |
711 | | - $nbytes = wfMessage( 'nbytes' )->numParams( $file->getSize() )->escaped(); |
| 713 | + global $wgLang; |
| 714 | + $nbytes = $wgLang->formatSize( $file->getSize() ); |
712 | 715 | $widthheight = wfMessage( 'widthheight' )->numParams( $file->getWidth(), $file->getHeight() )->escaped(); |
713 | 716 | |
714 | 717 | return "$widthheight ($nbytes)"; |