Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -629,6 +629,14 @@ |
630 | 630 | 'revdel-restore', |
631 | 631 | 'pagehist', |
632 | 632 | 'deletedhist', |
| 633 | + 'revdelete-content', |
| 634 | + 'revdelete-summary', |
| 635 | + 'revdelete-uname', |
| 636 | + 'revdelete-restricted', |
| 637 | + 'revdelete-unrestricted', |
| 638 | + 'revdelete-hid', |
| 639 | + 'revdelete-unhid', |
| 640 | + 'revdelete-log-message', |
633 | 641 | ), |
634 | 642 | 'suppression' => array( |
635 | 643 | 'suppressionlog', |
Index: trunk/phase3/includes/SpecialRevisiondelete.php |
— | — | @@ -1366,16 +1366,16 @@ |
1367 | 1367 | $diff = $n ^ $o; |
1368 | 1368 | $ret = array ( 0 => array(), 1 => array(), 2 => array() ); |
1369 | 1369 | |
1370 | | - $this->checkItem ( wfMsg ( 'revdelete-content' ), 1, $diff, $n, &$ret ); |
1371 | | - $this->checkItem ( wfMsg ( 'revdelete-summary' ), 2, $diff, $n, &$ret ); |
1372 | | - $this->checkItem ( wfMsg ( 'revdelete-uname' ), 4, $diff, $n, &$ret ); |
| 1370 | + $this->checkItem ( wfMsgForContent ( 'revdelete-content' ), 1, $diff, $n, &$ret ); |
| 1371 | + $this->checkItem ( wfMsgForContent ( 'revdelete-summary' ), 2, $diff, $n, &$ret ); |
| 1372 | + $this->checkItem ( wfMsgForContent ( 'revdelete-uname' ), 4, $diff, $n, &$ret ); |
1373 | 1373 | |
1374 | 1374 | // Restriction application to sysops |
1375 | 1375 | if ( $diff & 8 ) { |
1376 | 1376 | if ( $n & 8 ) |
1377 | | - $ret[2][] = wfMsg ( 'revdelete-restricted' ); |
| 1377 | + $ret[2][] = wfMsgForContent ( 'revdelete-restricted' ); |
1378 | 1378 | else |
1379 | | - $ret[2][] = wfMsg ( 'revdelete-unrestricted' ); |
| 1379 | + $ret[2][] = wfMsgForContent ( 'revdelete-unrestricted' ); |
1380 | 1380 | } |
1381 | 1381 | |
1382 | 1382 | return $ret; |
— | — | @@ -1392,19 +1392,19 @@ |
1393 | 1393 | * @param String $comment The comment associated with the change. |
1394 | 1394 | */ |
1395 | 1395 | function getLogMessage ( $count, $nbitfield, $obitfield, $comment ) { |
1396 | | - global $wgLang; |
| 1396 | + global $wgContLang; |
1397 | 1397 | |
1398 | 1398 | $s = ''; |
1399 | 1399 | $changes = $this->getChanges( $nbitfield, $obitfield ); |
1400 | 1400 | |
1401 | 1401 | if ( count ( $changes[0] ) ) { |
1402 | | - $s .= wfMsg ( 'revdelete-hid', implode ( ', ', $changes[0] ) ); |
| 1402 | + $s .= wfMsgForContent ( 'revdelete-hid', implode ( ', ', $changes[0] ) ); |
1403 | 1403 | } |
1404 | 1404 | |
1405 | 1405 | if ( count ( $changes[1] ) ) { |
1406 | 1406 | if ($s) $s .= '; '; |
1407 | 1407 | |
1408 | | - $s .= wfMsg ( 'revdelete-unhid', implode ( ', ', $changes[1] ) ); |
| 1408 | + $s .= wfMsgForContent ( 'revdelete-unhid', implode ( ', ', $changes[1] ) ); |
1409 | 1409 | } |
1410 | 1410 | |
1411 | 1411 | if ( count ( $changes[2] )) { |
— | — | @@ -1414,8 +1414,8 @@ |
1415 | 1415 | $s = $changes[2][0]; |
1416 | 1416 | } |
1417 | 1417 | |
1418 | | - $ret = wfMsgExt ( 'revdelete-log-message', array( 'parsemag' ), |
1419 | | - $s, $wgLang->formatNum($count) ); |
| 1418 | + $ret = wfMsgExt ( 'revdelete-log-message', array( 'parsemag', 'content' ), |
| 1419 | + $s, $wgContLang->formatNum( $count ) ); |
1420 | 1420 | |
1421 | 1421 | if ( $comment ) |
1422 | 1422 | $ret .= ": $comment"; |