https://www.mediawiki.org/wiki/Special:Code/MediaWiki/108262
Revision: 108262
Author: krinkle
Date: 2012-01-06 18:15:42 +0000 (Fri, 06 Jan 2012)
Log Message:
-----------
Add tooltip/accesskey to EditWatchlist
* Fixes bug 33565
Modified Paths:
--------------
trunk/phase3/RELEASE-NOTES-1.19
trunk/phase3/includes/specials/SpecialEditWatchlist.php
trunk/phase3/languages/messages/MessagesEn.php
trunk/phase3/languages/messages/MessagesQqq.php
Modified: trunk/phase3/RELEASE-NOTES-1.19
===================================================================
--- trunk/phase3/RELEASE-NOTES-1.19 2012-01-06 17:52:15 UTC (rev 108261)
+++ trunk/phase3/RELEASE-NOTES-1.19 2012-01-06 18:15:42 UTC (rev 108262)
@@ -120,6 +120,7 @@
* (bug 10574) Add an option to allow all pages to be exported by
Special:Export.
* mediawiki.js Message object constructor is now publicly available as
mw.Message.
* (bug 29309) allow CSS class per tooltip (tipsy)
+* (bug 33565) Add accesskey/tooltip to submit buttons on Special:EditWatchlist.
=== Bug fixes in 1.19 ===
* $wgUploadNavigationUrl should be used for file redlinks if.
Modified: trunk/phase3/includes/specials/SpecialEditWatchlist.php
===================================================================
--- trunk/phase3/includes/specials/SpecialEditWatchlist.php 2012-01-06
17:52:15 UTC (rev 108261)
+++ trunk/phase3/includes/specials/SpecialEditWatchlist.php 2012-01-06
18:15:42 UTC (rev 108262)
@@ -419,6 +419,8 @@
$form = new EditWatchlistNormalHTMLForm( $fields,
$this->getContext() );
$form->setTitle( $this->getTitle() );
$form->setSubmitTextMsg( 'watchlistedit-normal-submit' );
+ # Used message keys: 'accesskey-watchlistedit-normal-submit',
'tooltip-watchlistedit-normal-submit'
+ $form->setSubmitTooltip('watchlistedit-normal-submit');
$form->setWrapperLegendMsg( 'watchlistedit-normal-legend' );
$form->addHeaderText( $this->msg(
'watchlistedit-normal-explain' )->parse() );
$form->setSubmitCallback( array( $this, 'submitNormal' ) );
@@ -475,6 +477,8 @@
$form = new HTMLForm( $fields, $this->getContext() );
$form->setTitle( $this->getTitle( 'raw' ) );
$form->setSubmitTextMsg( 'watchlistedit-raw-submit' );
+ # Used message keys: 'accesskey-watchlistedit-raw-submit',
'tooltip-watchlistedit-raw-submit'
+ $form->setSubmitTooltip('watchlistedit-raw-submit');
$form->setWrapperLegendMsg( 'watchlistedit-raw-legend' );
$form->addHeaderText( $this->msg( 'watchlistedit-raw-explain'
)->parse() );
$form->setSubmitCallback( array( $this, 'submitRaw' ) );
Modified: trunk/phase3/languages/messages/MessagesEn.php
===================================================================
--- trunk/phase3/languages/messages/MessagesEn.php 2012-01-06 17:52:15 UTC
(rev 108261)
+++ trunk/phase3/languages/messages/MessagesEn.php 2012-01-06 18:15:42 UTC
(rev 108262)
@@ -3490,6 +3490,8 @@
'accesskey-blockip-block' => 's', # do not translate or duplicate
this message to other languages
'accesskey-export' => 's', # do not translate or duplicate
this message to other languages
'accesskey-import' => 's', # do not translate or duplicate
this message to other languages
+'accesskey-watchlistedit-normal-submit'=> 's', # do not translate or duplicate
this message to other languages
+'accesskey-watchlistedit-raw-submit'=> 's', # do not translate or duplicate
this message to other languages
# Tooltip help for the actions
'tooltip-pt-userpage' => 'Your user page',
@@ -3558,6 +3560,8 @@
'tooltip-undo' => '"Undo" reverts this edit and opens the
edit form in preview mode. It allows adding a reason in the summary.',
'tooltip-preferences-save' => 'Save preferences',
'tooltip-summary' => 'Enter a short summary',
+'tooltip-watchlistedit-normal-submit' => 'Remove titles',
+'tooltip-watchlistedit-raw-submit' => 'Update watchlist',
# Stylesheets
'common.css' => '/* CSS placed here will be applied to all skins
*/', # only translate this message to other languages if you have to change it
Modified: trunk/phase3/languages/messages/MessagesQqq.php
===================================================================
--- trunk/phase3/languages/messages/MessagesQqq.php 2012-01-06 17:52:15 UTC
(rev 108261)
+++ trunk/phase3/languages/messages/MessagesQqq.php 2012-01-06 18:15:42 UTC
(rev 108262)
@@ -3138,6 +3138,8 @@
'tooltip-diff' => 'This is the text (tooltip) that appears
when you hover the mouse over the "Show changes" button ({{msg|showdiff}}) on
the edit page.',
'tooltip-compareselectedversions' => 'Tooltip of
{{msg|compareselectedversions}} (which is used as button in history pages).',
'tooltip-watch' => '{{Identical|Add this page to your
watchlist}}',
+'tooltip-watchlistedit-normal-submit' => 'Tooltip for
{{msg|watchlistedit-normal-submit}} (used as button on
[[Special:EditWatchlist]]).',
+'tooltip-watchlistedit-raw-submit' => 'Tooltip for
{{msg|watchlistedit-raw-submit}} (used as button on
[[Special:EditWatchlist/raw]]).',
'tooltip-rollback' => 'Tooltip of the rollback link on the
history page and the diff view
{{Identical|Rollback}}
{{Identical|Revert}}',
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs