Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -735,15 +735,7 @@ |
736 | 736 | |
737 | 737 | $diffHistLinks = '(' . $difftext . $this->messages['pipe-separator'] . $histlink . ')'; |
738 | 738 | |
739 | | - $calculatedSize = $row->rc_new_len - $row->rc_old_len; |
740 | | - $diffOut = ' . . '; |
741 | | - if ( $calculatedSize === 0 ) { |
742 | | - $diffOut .= "<span class='mw-plusminus-null'>($calculatedSize)</span>"; |
743 | | - } elseif ( $calculatedSize > 0 ) { |
744 | | - $diffOut .= "<span class='mw-plusminus-pos'>(+$calculatedSize)</span>"; |
745 | | - } else { |
746 | | - $diffOut .= "<span class='mw-plusminus-neg'>($calculatedSize)</span>"; |
747 | | - } |
| 739 | + $diffOut = ' . . '.ChangesList::showCharacterDifference( $row->rc_old_len, $row->rc_new_len ); |
748 | 740 | |
749 | 741 | $ret = "{$del}{$d} {$diffHistLinks} {$nflag}{$mflag} {$link}{$diffOut}{$userlink} {$comment} {$topmarktext}"; |
750 | 742 | |
— | — | @@ -780,9 +772,9 @@ |
781 | 773 | */ |
782 | 774 | function getSqlComment() { |
783 | 775 | if ( $this->namespace || $this->deletedOnly ) { |
784 | | - return 'contributions page filtered for namespace or RevisionDeleted edits'; // potentially slow, see CR r58153 |
| 776 | + return wfMsg( 'sp-contributions-filtered' ); // potentially slow, see CR r58153 |
785 | 777 | } else { |
786 | | - return 'contributions page unfiltered'; |
| 778 | + return wfMsg( 'sp-contributions-unfiltered' ); |
787 | 779 | } |
788 | 780 | } |
789 | 781 | |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -2992,6 +2992,8 @@ |
2993 | 2993 | 'sp-contributions-explain' => '', # only translate this message to other languages if you have to change it |
2994 | 2994 | 'sp-contributions-footer' => '-', # do not translate or duplicate this message to other languages |
2995 | 2995 | 'sp-contributions-footer-anon' => '-', # do not translate or duplicate this message to other languages |
| 2996 | +'sp-contributions-filtered' => 'contributions page filtered for namespace or RevisionDeleted edits', |
| 2997 | +'sp-contributions-unfiltered' => 'contributions page unfiltered', |
2996 | 2998 | |
2997 | 2999 | # What links here |
2998 | 3000 | 'whatlinkshere' => 'What links here', |