Remove these tooltips in favor of actually putting the information inline.
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 12 Dec 2008 18:29:33 +0000 (18:29 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 12 Dec 2008 18:29:33 +0000 (18:29 +0000)
includes/specials/SpecialStatistics.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index 85ce51a..9f0efde 100644 (file)
@@ -64,8 +64,7 @@ function wfSpecialStatistics( $par = '' ) {
                                        ' class="mw-statistics-articles"' ) .
                        formatRow( wfMsgExt( 'statistics-pages', array( 'parseinline' ) ),
                                        $wgLang->formatNum( $total ),
-                                       ' class="mw-statistics-pages"',
-                                       'statistics-pages-tooltip' ) .
+                                       ' class="mw-statistics-pages"' ) .
                        formatRow( wfMsgExt( 'statistics-files', array( 'parseinline' ) ),
                                        $wgLang->formatNum( $images ),
                                        ' class="mw-statistics-files"' ) .
@@ -89,8 +88,7 @@ function wfSpecialStatistics( $par = '' ) {
                                        ' class="mw-statistics-users"' ) .
                        formatRow( wfMsgExt( 'statistics-users-active', array( 'parseinline' ) ),
                                        $wgLang->formatNum( $activeUsers ),
-                                       ' class="mw-statistics-users-active"',
-                                       'statistics-users-active-tooltip' );
+                                       ' class="mw-statistics-users-active"' );
 
                # Statistic - usergroups
                foreach( $wgGroupPermissions as $group => $permissions ) {
@@ -182,13 +180,7 @@ function wfSpecialStatistics( $par = '' ) {
  * @param float $number a number
  * @return string table row in HTML format
  */
-function formatRow( $text, $number, $trExtraParams = '', $tooltip = '' ) {
-       global $wgStylePath;
-
-       if( $tooltip ) {
-               $tooltipText = wfMsg( $tooltip );
-               $text = '<div class="mw-tooltip-icon" title="' . $tooltipText . '">' . $text . '<sup><a class="mw-tooptip-icon" title="' . $tooltipText . '"><img alt="' . $tooltipText . '" src="' . $wgStylePath . '/common/images/tooltip_icon.png" width="10" height="12" border="0" /></a></sup></div>';
-       }
+function formatRow( $text, $number, $trExtraParams = '' ) {
 
        return "<tr{$trExtraParams}>
                        <td>" .
index 8c26a76..2ee6f5d 100644 (file)
@@ -2017,8 +2017,7 @@ Remember to check for other links to the templates before deleting them.',
 'statistics-header-views'         => 'View statistics',
 'statistics-header-users'         => 'User statistics',
 'statistics-articles'             => 'Content pages',
-'statistics-pages'                => 'Pages',
-'statistics-pages-tooltip'        => 'All pages in the wiki, including talk pages, redirects, etc.',
+'statistics-pages'                => 'Pages <small>(All pages in the wiki, including talk pages, redirects, etc.)</small>',
 'statistics-files'                => 'Uploaded files',
 'statistics-edits'                => 'Page edits since {{SITENAME}} was setup',
 'statistics-edits-average'        => 'Average edits per page',
@@ -2026,8 +2025,7 @@ Remember to check for other links to the templates before deleting them.',
 'statistics-views-peredit'        => 'Views per edit',
 'statistics-jobqueue'             => '[http://www.mediawiki.org/wiki/Manual:Job_queue Job queue] length',
 'statistics-users'                => 'Registered [[Special:ListUsers|users]]',
-'statistics-users-active'         => 'Active users',
-'statistics-users-active-tooltip' => 'Users who have performed an action in the past month',
+'statistics-users-active'         => 'Active users <small>(Users who have performed an action in the last month)</small>',
 'statistics-mostpopular'          => 'Most viewed pages',
 'statistics-footer'               => '', # do not translate or duplicate this message to other languages
 
index 25d1b77..cbf960d 100644 (file)
@@ -1283,7 +1283,6 @@ $wgMessageStructure = array(
                'statistics-header-users',
                'statistics-articles',
                'statistics-pages',
-               'statistics-pages-tooltip',
                'statistics-files',
                'statistics-edits',
                'statistics-edits-average',
@@ -1292,7 +1291,6 @@ $wgMessageStructure = array(
                'statistics-jobqueue',
                'statistics-users',
                'statistics-users-active',
-               'statistics-users-active-tooltip',
                'statistics-mostpopular',
                'statistics-footer',
        ),