Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -1097,7 +1097,7 @@ |
1098 | 1098 | if ( $file->isDeleted( File::DELETED_COMMENT ) ) { |
1099 | 1099 | $row .= '<span class="history-deleted">' . wfMsgHtml( 'rev-deleted-comment' ) . '</span>'; |
1100 | 1100 | } else { |
1101 | | - $row .= $this->skin->commentBlock( $description, $this->title ); |
| 1101 | + $row .= $this->skin->commentBlock( $description, $this->title, false, false ); |
1102 | 1102 | } |
1103 | 1103 | $row .= '</td>'; |
1104 | 1104 | |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1292,10 +1292,10 @@ |
1293 | 1293 | * @param $comment String |
1294 | 1294 | * @param $title Mixed: Title object (to generate link to section in autocomment) or null |
1295 | 1295 | * @param $local Boolean: whether section links should refer to local page |
1296 | | - * |
| 1296 | + * @param $embraced Boolean: whether the formatted comment should be embraced with () |
1297 | 1297 | * @return string |
1298 | 1298 | */ |
1299 | | - static function commentBlock( $comment, $title = null, $local = false ) { |
| 1299 | + static function commentBlock( $comment, $title = null, $local = false, $embraced = true ) { |
1300 | 1300 | // '*' used to be the comment inserted by the software way back |
1301 | 1301 | // in antiquity in case none was provided, here for backwards |
1302 | 1302 | // compatability, acc. to brion -ævar |
— | — | @@ -1303,7 +1303,10 @@ |
1304 | 1304 | return ''; |
1305 | 1305 | } else { |
1306 | 1306 | $formatted = self::formatComment( $comment, $title, $local ); |
1307 | | - return " <span class=\"comment\">($formatted)</span>"; |
| 1307 | + if ( $embraced ) { |
| 1308 | + $formatted = wfMessage( 'parentheses', $formatted ); |
| 1309 | + } |
| 1310 | + return Html::rawElement( 'span', array( 'class' => 'comment' ), $formatted ); |
1308 | 1311 | } |
1309 | 1312 | } |
1310 | 1313 | |
Index: trunk/phase3/includes/specials/SpecialListfiles.php |
— | — | @@ -215,7 +215,7 @@ |
216 | 216 | case 'img_size': |
217 | 217 | return $this->getSkin()->formatSize( $value ); |
218 | 218 | case 'img_description': |
219 | | - return $this->getSkin()->commentBlock( $value ); |
| 219 | + return $this->getSkin()->commentBlock( $value, null, false, false ); |
220 | 220 | case 'count': |
221 | 221 | return intval($value)+1; |
222 | 222 | } |