access key and tooltip for 'compare selected versions' button, defaults to 'v'
authorGabriel Wicke <gwicke@users.mediawiki.org>
Fri, 21 May 2004 16:03:46 +0000 (16:03 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Fri, 21 May 2004 16:03:46 +0000 (16:03 +0000)
includes/PageHistory.php
languages/Language.php

index ea7a74f..49b42f3 100644 (file)
@@ -123,7 +123,8 @@ class PageHistory {
                $s = $skip ? "" : preg_replace( "/!OLDID![0-9]+!/", $last, $this->lastline );
                $s .= "</ul>\n";
                if( $this->linesonpage > 1) {
-                       $s .= '<button type="submit">'.wfMsg('compareselectedversions')."</button><br/><br/>\n";
+                       $s .= '<button type="submit" accesskey="'.wfMsg('accesskey-compareselectedversions').
+                       '" title="'.wfMsg('tooltip-compareselectedversions').'">'.wfMsg('compareselectedversions')."</button><br/><br/>\n";
                }
                $s .= "</form>\n";
                return $s;
index 4a9e5fc..82adf44 100644 (file)
@@ -1488,6 +1488,7 @@ amusement.",
 'accesskey-preview' => 'p',
 'accesskey-contributions' => '',
 'accesskey-emailuser' => '',
+'accesskey-compareselectedversions' => 'v',
 
 # tooltip help for the main actions
 'tooltip-atom' => 'Atom feed for this page',
@@ -1532,6 +1533,7 @@ amusement.",
 'tooltip-contributions' => 'View the list of contributions of this user',
 'tooltip-emailuser' => 'Send a mail to this user',
 'tooltip-rss' => 'RSS feed for this page',
+'tooltip-compareselectedversions' => 'See the differences between the two selected versions of this page. [alt-v]',
 
 # Metadata
 "nodublincore" => "Dublin Core RDF metadata disabled for this server.",