From fa2a4dc337e1e740694f1b38596b383b68fff06f Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Sat, 13 Oct 2007 10:21:59 +0000 Subject: [PATCH] Added accesskey and tooltip for the "Go" button, and tooltip for the "Search" button. --- RELEASE-NOTES | 2 ++ languages/messages/MessagesEn.php | 4 ++++ languages/messages/MessagesHe.php | 2 ++ maintenance/language/messageTypes.inc | 2 ++ maintenance/language/messages.inc | 4 ++++ skins/MonoBook.php | 4 ++-- 6 files changed, 16 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 52deb4b25f..88205e18ee 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -37,6 +37,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN of the strict() authentication behavior. * (bug 7872) Deleted revisions can now be viewed as diffs showing changes against the previous revision, whether currently deleted or live. +* Added accesskey and tooltip for the "Go" button, and tooltip for the "Search" + button. === Bug fixes in 1.12 === diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index c13c4506ea..4dd3ae22e9 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2271,6 +2271,8 @@ All transwiki import actions are logged at the [[Special:Log/import|import log]] 'accesskey-ca-watch' => 'w', # don't translate or duplicate this message to other languages 'accesskey-ca-unwatch' => 'w', # don't translate or duplicate this message to other languages 'accesskey-search' => 'f', # don't translate or duplicate this message to other languages +'accesskey-search-go' => 'g', # don't translate or duplicate this message to other languages +'accesskey-search-fulltext' => '', # don't translate or duplicate this message to other languages 'accesskey-p-logo' => '', # don't translate or duplicate this message to other languages 'accesskey-n-mainpage' => 'z', # don't translate or duplicate this message to other languages 'accesskey-n-portal' => '', # don't translate or duplicate this message to other languages @@ -2330,6 +2332,8 @@ All transwiki import actions are logged at the [[Special:Log/import|import log]] 'tooltip-ca-watch' => 'Add this page to your watchlist', 'tooltip-ca-unwatch' => 'Remove this page from your watchlist', 'tooltip-search' => 'Search {{SITENAME}}', +'tooltip-search-go' => 'Go to a page with this exact name if exists', +'tooltip-search-fulltext' => 'Search the pages for this text', 'tooltip-p-logo' => 'Main Page', 'tooltip-n-mainpage' => 'Visit the Main Page', 'tooltip-n-portal' => 'About the project, what you can do, where to find things', diff --git a/languages/messages/MessagesHe.php b/languages/messages/MessagesHe.php index d2312f9d94..7d8d4cd2f5 100644 --- a/languages/messages/MessagesHe.php +++ b/languages/messages/MessagesHe.php @@ -1909,6 +1909,8 @@ $1 'tooltip-ca-watch' => 'הוסיפו דף זה לרשימת המעקב', 'tooltip-ca-unwatch' => 'הסירו דף זה מרשימת המעקב', 'tooltip-search' => 'חיפוש ב{{grammar:תחילית|{{SITENAME}}}}', +'tooltip-search-go' => 'עברו לדף בשם הזה בדיוק, אם הוא קיים', +'tooltip-search-fulltext' => 'חפשו טקסט זה בדפים', 'tooltip-p-logo' => 'עמוד ראשי', 'tooltip-n-mainpage' => 'בקרו בעמוד הראשי', 'tooltip-n-portal' => 'אודות המיזם, איך תוכלו לעזור, איפה למצוא דברים', diff --git a/maintenance/language/messageTypes.inc b/maintenance/language/messageTypes.inc index 1df293148b..8b1cd20921 100644 --- a/maintenance/language/messageTypes.inc +++ b/maintenance/language/messageTypes.inc @@ -30,6 +30,8 @@ $wgIgnoredMessages = array( 'accesskey-ca-watch', 'accesskey-ca-unwatch', 'accesskey-search', + 'accesskey-search-go', + 'accesskey-search-fulltext', 'accesskey-p-logo', 'accesskey-n-mainpage', 'accesskey-n-portal', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index 8f2e905780..6cc4b1297c 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -1535,6 +1535,8 @@ $wgMessageStructure = array( 'accesskey-ca-watch', 'accesskey-ca-unwatch', 'accesskey-search', + 'accesskey-search-go', + 'accesskey-search-fulltext', 'accesskey-p-logo', 'accesskey-n-mainpage', 'accesskey-n-portal', @@ -1594,6 +1596,8 @@ $wgMessageStructure = array( 'tooltip-ca-watch', 'tooltip-ca-unwatch', 'tooltip-search', + 'tooltip-search-go', + 'tooltip-search-fulltext', 'tooltip-p-logo', 'tooltip-n-mainpage', 'tooltip-n-portal', diff --git a/skins/MonoBook.php b/skins/MonoBook.php index 398d3f7c3e..d0148a701f 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -169,8 +169,8 @@ class MonoBookTemplate extends QuickTemplate { tooltipAndAccesskey('search'); if( isset( $this->data['search'] ) ) { ?> value="text('search') ?>" /> -   - + tooltipAndAccesskey( 'search-go' ); ?> />  + tooltipAndAccesskey( 'search-fulltext' ); ?> /> -- 2.20.1