From c3d4f7418b53044a990cb4cc6cce5354b668e71d Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 23 Jun 2011 20:00:05 +0000 Subject: [PATCH] Add tooltips to the Special:Recentchanges checkboxes follow up r83110 --- includes/specials/SpecialRecentchanges.php | 9 +++++++-- languages/messages/MessagesEn.php | 2 ++ languages/messages/MessagesQqq.php | 2 ++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index 8dfb66a0e8..cf24ec1c04 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -639,10 +639,15 @@ class SpecialRecentChanges extends IncludableSpecialPage { protected function namespaceFilterForm( FormOptions $opts ) { $nsSelect = Xml::namespaceSelector( $opts['namespace'], '' ); $nsLabel = Xml::label( wfMsg( 'namespace' ), 'namespace' ); - $invert = Xml::checkLabel( wfMsg( 'invert' ), 'invert', 'nsinvert', $opts['invert'] ); + $invert = Xml::checkLabel( + wfMsg( 'invert' ), 'invert', 'nsinvert', + $opts['invert'], + array( 'title' => wfMsg( 'invert_tip' ) ) + ); $associated = Xml::checkLabel( wfMsg( 'namespace_association' ), 'associated', 'nsassociated', - $opts['associated'] + $opts['associated'], + array( 'title' => wfMsg( 'namespace_association_tip' ) ) ); return array( $nsLabel, "$nsSelect $invert $associated" ); } diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index a88215b842..d53832374e 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2963,7 +2963,9 @@ $1', # Namespace form on various pages 'namespace' => 'Namespace:', 'invert' => 'Invert selection', +'invert_tip' => 'Check this box to also filter out the current namespace selection', 'namespace_association' => 'Associated namespace', +'namespace_association_tip' => 'Check this box to also include the talk or subject namespace associated to your selection', 'blanknamespace' => '(Main)', # Contributions diff --git a/languages/messages/MessagesQqq.php b/languages/messages/MessagesQqq.php index 1569cd2bc0..f09820942d 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -2605,7 +2605,9 @@ This message was something like "unlock move protection" in the past.', 'invert' => 'Displayed in [[Special:RecentChanges|RecentChanges]], [[Special:RecentChangesLinked|RecentChangesLinked]] and [[Special:Watchlist|Watchlist]] {{Identical|Invert selection}}', +'invert_tip' => 'Used in [[Special:Recentchanges]] as a tooltip for the invert checkbox. See also the \'invert\' message.', 'namespace_association' => 'Used in [[Special:Recentchanges]] with a checkbox which selects the associated namespace to be added to the selected namespace, so that both are searched (or excluded depending on another checkbox selection). The association is between a namespace and its talk namespace.', +'namespace_association_tip' => 'Used in [[Special:Recentchanges]] as a tooltip for the associated namespace checkbox. See also namespace_association message.', 'blanknamespace' => 'Name for main namespace (blank namespace) in drop-down menus at [[Special:RecentChanges]] and other special pages.', # Contributions -- 2.20.1