(bug 37186) Remove hard coded parentheses in ImagePage.php
authorLiangent <liangent@gmail.com>
Tue, 29 May 2012 08:03:59 +0000 (16:03 +0800)
committerLiangent <liangent@gmail.com>
Tue, 29 May 2012 08:10:47 +0000 (16:10 +0800)
Change-Id: Ib516e501953f37a69707a5de3e2ed96004760caa

includes/ImagePage.php

index 3aeb70a..22984a5 100644 (file)
@@ -1099,7 +1099,10 @@ class ImageHistoryList extends ContextSource {
                // Image dimensions + size
                $row .= '<td>';
                $row .= htmlspecialchars( $file->getDimensionsString() );
-               $row .= ' <span style="white-space: nowrap;">(' . Linker::formatSize( $file->getSize() ) . ')</span>';
+               $row .= $this->getContext()->msg( 'word-separator' )->plain();
+               $row .= '<span style="white-space: nowrap;">';
+               $row .= $this->getContext()->msg( 'parentheses' )->rawParams( Linker::formatSize( $file->getSize() ) )->plain();
+               $row .= '</span>';
                $row .= '</td>';
 
                // Uploading user