From 1edc2c6f0071fd2665053129bccb27347d2eb438 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 12 Dec 2008 18:29:33 +0000 Subject: [PATCH] Remove these tooltips in favor of actually putting the information inline. --- includes/specials/SpecialStatistics.php | 14 +++----------- languages/messages/MessagesEn.php | 6 ++---- maintenance/language/messages.inc | 2 -- 3 files changed, 5 insertions(+), 17 deletions(-) diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index 85ce51aba7..9f0efde259 100644 --- a/includes/specials/SpecialStatistics.php +++ b/includes/specials/SpecialStatistics.php @@ -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 = '
' . $text . '' . $tooltipText . '
'; - } +function formatRow( $text, $number, $trExtraParams = '' ) { return " " . diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 8c26a76589..2ee6f5d0cb 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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 (All pages in the wiki, including talk pages, redirects, etc.)', '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 (Users who have performed an action in the last month)', 'statistics-mostpopular' => 'Most viewed pages', 'statistics-footer' => '', # do not translate or duplicate this message to other languages diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index 25d1b77a8f..cbf960d935 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -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', ), -- 2.20.1