* Add accesskey 's' and tooltip to 'Save' button at Special:Preferences
authorRaimond Spekking <raymond@users.mediawiki.org>
Sat, 24 Apr 2010 20:07:13 +0000 (20:07 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Sat, 24 Apr 2010 20:07:13 +0000 (20:07 +0000)
RELEASE-NOTES
includes/Preferences.php
languages/messages/MessagesEn.php
maintenance/language/messageTypes.inc
maintenance/language/messages.inc

index 2bec9f1..a772b25 100644 (file)
@@ -53,6 +53,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   is provided on the Upload form.
 * (bug 22647) Add category details in search results.
 * (bug 23276) Add hook to Special:NewPages to modify query
+* Add accesskey 's' and tooltip to 'Save' button at Special:Preferences
 
 === Bug fixes in 1.17 ===
 * (bug 17560) Half-broken deletion moved image files to deletion archive
index d2ce5ce..b9383d8 100644 (file)
@@ -1140,6 +1140,8 @@ class Preferences {
                $htmlForm = new PreferencesForm( $formDescriptor, 'prefs' );
 
                $htmlForm->setSubmitText( wfMsg( 'saveprefs' ) );
+               # Used message keys: 'accesskey-preferences-save', 'tooltip-preferences-save'
+               $htmlForm->setSubmitTooltip( 'preferences-save' );
                $htmlForm->setTitle( SpecialPage::getTitleFor( 'Preferences' ) );
                $htmlForm->setSubmitID( 'prefsubmit' );
                $htmlForm->setSubmitCallback( array( 'Preferences', 'tryFormSubmit' ) );
index 5c8b485..43657f7 100644 (file)
@@ -3294,6 +3294,7 @@ Please try again.',
 'accesskey-compareselectedversions' => 'v', # do not translate or duplicate this message to other languages
 'accesskey-watch'                   => 'w', # do not translate or duplicate this message to other languages
 'accesskey-upload'                  => 's', # do not translate or duplicate this message to other languages
+'accesskey-preferences-save'        => 's', # do not translate or duplicate this message to other languages
 
 # Tooltip help for the actions
 'tooltip-pt-userpage'             => 'Your user page',
@@ -3360,6 +3361,7 @@ You can view its source',
 'tooltip-upload'                  => 'Start upload',
 'tooltip-rollback'                => '"Rollback" reverts edit(s) to this page of the last contributor in one click',
 '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',
 
 # 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
index 9b979b1..7006fb7 100644 (file)
@@ -69,6 +69,7 @@ $wgIgnoredMessages = array(
        'accesskey-compareselectedversions',
        'accesskey-watch',
        'accesskey-upload',
+       'accesskey-preferences-save',
        'addsection',
        'talkpageheader',
        'anonnotice',
index 33f54e5..c57abc5 100644 (file)
@@ -2262,6 +2262,7 @@ $wgMessageStructure = array(
                'accesskey-compareselectedversions',
                'accesskey-watch',
                'accesskey-upload',
+               'accesskey-preferences-save',
        ),
        'tooltips' => array(
                'tooltip-pt-userpage',
@@ -2328,6 +2329,7 @@ $wgMessageStructure = array(
                'tooltip-upload',
                'tooltip-rollback',
                'tooltip-undo',
+               'tooltip-preferences-save',
        ),
        'stylesheets' => array(
                'common.css',