enhance size tooltip on changelist
authorAntoine Musso <hashar@users.mediawiki.org>
Wed, 4 Jan 2012 11:33:35 +0000 (11:33 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Wed, 4 Jan 2012 11:33:35 +0000 (11:33 +0000)
follow r104085

includes/ChangesList.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc

index c8e136d..f08afff 100644 (file)
@@ -217,7 +217,7 @@ class ChangesList extends ContextSource {
                        $formattedSizeClass = 'mw-plusminus-neg';
                }
 
-               $formattedTotalSize = wfMsgExt( 'nbytes', 'parsemag', $wgLang->formatNum( $new ) );
+               $formattedTotalSize = wfMsgExt( 'rc-change-size-new', 'parsemag', $wgLang->formatNum( $new ) );
 
                return Html::element( $tag,
                        array( 'dir' => 'ltr', 'class' => $formattedSizeClass, 'title' => $formattedTotalSize ),
index 937a5ba..153bde3 100644 (file)
@@ -2061,6 +2061,8 @@ Your e-mail address is not revealed when other users contact you.',
 'rc_categories'                     => 'Limit to categories (separate with "|")',
 'rc_categories_any'                 => 'Any',
 'rc-change-size'                    => '$1', # only translate this message to other languages if you have to change it
+'rc-change-size-new' => '$1 {{PLURAL:$1|byte|bytes}} after change',
+
 'newsectionsummary'                 => '/* $1 */ new section',
 'rc-enhanced-expand'                => 'Show details (requires JavaScript)',
 'rc-enhanced-hide'                  => 'Hide details',
index e163c1f..101aed1 100644 (file)
@@ -1780,6 +1780,7 @@ I guess that this should appear before an input box where you can specify that r
 'rc-change-size'                  => '{{optional}}
 
 Does not work under $wgMiserMode ([[mwr:48986|r48986]]).',
+'rc-change-size-new'              => 'Tooltip when overing a change list diff size. The tooltip show the resulting new size in bytes.',
 'newsectionsummary'               => 'Default summary when adding a new section to a page.',
 
 # Recent changes linked
index 4ff4c61..3ee01b6 100644 (file)
@@ -1225,6 +1225,7 @@ $wgMessageStructure = array(
                'rc_categories',
                'rc_categories_any',
                'rc-change-size',
+               'rc-change-size-new',
                'newsectionsummary',
                'rc-enhanced-expand',
                'rc-enhanced-hide',