Add tooltips to the Special:Recentchanges checkboxes
authorAntoine Musso <hashar@users.mediawiki.org>
Thu, 23 Jun 2011 20:00:05 +0000 (20:00 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Thu, 23 Jun 2011 20:00:05 +0000 (20:00 +0000)
follow up r83110

includes/specials/SpecialRecentchanges.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php

index 8dfb66a..cf24ec1 100644 (file)
@@ -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" );
        }
index a88215b..d538323 100644 (file)
@@ -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
index 1569cd2..f098209 100644 (file)
@@ -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