From f446d6b96912cdde8a6b248648b4155ec54f5cce Mon Sep 17 00:00:00 2001 From: Jure Kajzer Date: Fri, 13 May 2011 21:33:56 +0000 Subject: [PATCH] * fixed as per comment on r88008 --- includes/specials/SpecialContributions.php | 14 +++----------- languages/messages/MessagesEn.php | 2 ++ 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 520c7a9b61..5a5d4fa2bd 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -735,15 +735,7 @@ class ContribsPager extends ReverseChronologicalPager { $diffHistLinks = '(' . $difftext . $this->messages['pipe-separator'] . $histlink . ')'; - $calculatedSize = $row->rc_new_len - $row->rc_old_len; - $diffOut = ' . . '; - if ( $calculatedSize === 0 ) { - $diffOut .= "($calculatedSize)"; - } elseif ( $calculatedSize > 0 ) { - $diffOut .= "(+$calculatedSize)"; - } else { - $diffOut .= "($calculatedSize)"; - } + $diffOut = ' . . '.ChangesList::showCharacterDifference( $row->rc_old_len, $row->rc_new_len ); $ret = "{$del}{$d} {$diffHistLinks} {$nflag}{$mflag} {$link}{$diffOut}{$userlink} {$comment} {$topmarktext}"; @@ -780,9 +772,9 @@ class ContribsPager extends ReverseChronologicalPager { */ function getSqlComment() { if ( $this->namespace || $this->deletedOnly ) { - return 'contributions page filtered for namespace or RevisionDeleted edits'; // potentially slow, see CR r58153 + return wfMsg( 'sp-contributions-filtered' ); // potentially slow, see CR r58153 } else { - return 'contributions page unfiltered'; + return wfMsg( 'sp-contributions-unfiltered' ); } } diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 785359998f..827c02dab9 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2992,6 +2992,8 @@ The latest block log entry is provided below for reference:', 'sp-contributions-explain' => '', # only translate this message to other languages if you have to change it 'sp-contributions-footer' => '-', # do not translate or duplicate this message to other languages 'sp-contributions-footer-anon' => '-', # do not translate or duplicate this message to other languages +'sp-contributions-filtered' => 'contributions page filtered for namespace or RevisionDeleted edits', +'sp-contributions-unfiltered' => 'contributions page unfiltered', # What links here 'whatlinkshere' => 'What links here', -- 2.20.1