Index: trunk/phase3/includes/SpecialRevisiondelete.php |
— | — | @@ -1389,9 +1389,10 @@ |
1390 | 1390 | * @param int $count The number of effected revisions. |
1391 | 1391 | * @param int $nbitfield The new bitfield for the revision. |
1392 | 1392 | * @param int $obitfield The old bitfield for the revision. |
1393 | | - * @param String $comment The comment associated with the change. |
| 1393 | + * @param string $comment The comment associated with the change. |
| 1394 | + * @param bool $isForLog |
1394 | 1395 | */ |
1395 | | - function getLogMessage ( $count, $nbitfield, $obitfield, $comment ) { |
| 1396 | + function getLogMessage ( $count, $nbitfield, $obitfield, $comment, $isForLog = false ) { |
1396 | 1397 | global $wgContLang; |
1397 | 1398 | |
1398 | 1399 | $s = ''; |
— | — | @@ -1414,7 +1415,8 @@ |
1415 | 1416 | $s = $changes[2][0]; |
1416 | 1417 | } |
1417 | 1418 | |
1418 | | - $ret = wfMsgExt ( 'revdelete-log-message', array( 'parsemag', 'content' ), |
| 1419 | + $msg = $isForLog ? 'logdelete-log-message' : 'revdelete-log-message'; |
| 1420 | + $ret = wfMsgExt ( $msg, array( 'parsemag', 'content' ), |
1419 | 1421 | $s, $wgContLang->formatNum( $count ) ); |
1420 | 1422 | |
1421 | 1423 | if ( $comment ) |
— | — | @@ -1440,9 +1442,9 @@ |
1441 | 1443 | $logtype = ( ($nbitfield | $obitfield) & Revision::DELETED_RESTRICTED ) ? 'suppress' : 'delete'; |
1442 | 1444 | $log = new LogPage( $logtype ); |
1443 | 1445 | |
1444 | | - $reason = $this->getLogMessage ( $count, $nbitfield, $obitfield, $comment ); |
| 1446 | + $reason = $this->getLogMessage ( $count, $nbitfield, $obitfield, $comment, $param == 'logid' ); |
1445 | 1447 | |
1446 | | - if( $param=='logid' ) { |
| 1448 | + if( $param == 'logid' ) { |
1447 | 1449 | $params = array( implode( ',', $items) ); |
1448 | 1450 | $log->addEntry( 'event', $title, $reason, $params ); |
1449 | 1451 | } else { |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1223,6 +1223,7 @@ |
1224 | 1224 | 'revdelete-hid' => 'hid $1', |
1225 | 1225 | 'revdelete-unhid' => 'unhid $1', |
1226 | 1226 | 'revdelete-log-message' => '$1 for $2 {{PLURAL:$2|revision|revisions}}', |
| 1227 | +'logdelete-log-message' => '$1 for $2 {{PLURAL:$2|event|events}}', |
1227 | 1228 | |
1228 | 1229 | # Suppression log |
1229 | 1230 | 'suppressionlog' => 'Suppression log', |