Bug 924876 - Add access keys for buttons in "Going online/offline" dialog. r+ui-r=bwinton
authoraceman <acelists@atlas.sk>
Tue, 12 Nov 2013 09:57:32 -0500
changeset 16882 eda1ae45ed6f740f4b2331030e31d3e670eb81d9
parent 16881 42b421a3887b58db025bf84e951b646573ace947
child 16883 976e600de09920b5d9e52f1e8c29ab9836cc567f
push id1074
push userbugzilla@standard8.plus.com
push dateMon, 03 Feb 2014 22:47:23 +0000
treeherdercomm-beta@6b791b5369ed [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs924876
Bug 924876 - Add access keys for buttons in "Going online/offline" dialog. r+ui-r=bwinton
mail/base/content/mail-offline.js
mail/locales/en-US/chrome/messenger/offline.properties
--- a/mail/base/content/mail-offline.js
+++ b/mail/base/content/mail-offline.js
@@ -113,18 +113,18 @@ var MailOfflineMgr = {
   confirmSendUnsentMessages: function()
   {
     let alwaysAsk = {value: true};
     let sendUnsentMessages = Services.prompt.confirmEx(window,
       this.offlineBundle.getString('sendMessagesWindowTitle1'),
       this.offlineBundle.getString('sendMessagesLabel2'),
       (Services.prompt.BUTTON_TITLE_IS_STRING * Services.prompt.BUTTON_POS_0) +
       (Services.prompt.BUTTON_TITLE_IS_STRING * Services.prompt.BUTTON_POS_1),
-      this.offlineBundle.getString('sendMessagesNow'),
-      this.offlineBundle.getString('processMessagesLater'),
+      this.offlineBundle.getString('sendMessagesNow2'),
+      this.offlineBundle.getString('processMessagesLater2'),
       null,
       this.offlineBundle.getString('sendMessagesCheckboxLabel1'),
       alwaysAsk) == 0;
 
     // if the user changed the ask me setting then update the global pref based on their yes / no answer
     if (!alwaysAsk.value)
       Services.prefs.setIntPref("offline.send.unsent_messages", sendUnsentMessages ? 1 : 2);
 
@@ -161,18 +161,18 @@ var MailOfflineMgr = {
   confirmDownloadMessagesForOfflineUse: function()
   {
     let alwaysAsk = {value: true};
     let downloadMessages = Services.prompt.confirmEx(window,
       this.offlineBundle.getString('downloadMessagesWindowTitle1'),
       this.offlineBundle.getString('downloadMessagesLabel1'),
       (Services.prompt.BUTTON_TITLE_IS_STRING * Services.prompt.BUTTON_POS_0) +
       (Services.prompt.BUTTON_TITLE_IS_STRING * Services.prompt.BUTTON_POS_1),
-      this.offlineBundle.getString('downloadMessagesNow'),
-      this.offlineBundle.getString('processMessagesLater'),
+      this.offlineBundle.getString('downloadMessagesNow2'),
+      this.offlineBundle.getString('processMessagesLater2'),
       null,
       this.offlineBundle.getString('downloadMessagesCheckboxLabel1'),
       alwaysAsk) == 0;
 
     // if the user changed the ask me setting then update the global pref based on their yes / no answer
     if (!alwaysAsk.value)
       Services.prefs.setIntPref("offline.download.download_messages", downloadMessages ? 1 : 2);
     return downloadMessages;
--- a/mail/locales/en-US/chrome/messenger/offline.properties
+++ b/mail/locales/en-US/chrome/messenger/offline.properties
@@ -1,25 +1,25 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 # Download Messages Prompt
 downloadMessagesWindowTitle1=Download Messages
 downloadMessagesLabel1=Do you want to download messages for offline use before going offline?
 downloadMessagesCheckboxLabel1=Always ask me when I go offline
-downloadMessagesNow=Download Now
+downloadMessagesNow2=&Download Now
 
 # Send Messages Prompt
 sendMessagesWindowTitle1=Unsent Messages
 sendMessagesLabel2=Do you want to send your unsent messages now?
 sendMessagesCheckboxLabel1=Always ask me when I go online
-sendMessagesNow=Send Now
+sendMessagesNow2=&Send Now
 
-processMessagesLater=Later
+processMessagesLater2=&Later
 
 # GetMessages While Offline Prompt
 getMessagesOfflineWindowTitle1=Get Messages
 getMessagesOfflineLabel1=You are currently offline. Do you want to go online to get new messages?
 
 # Send Messages Offline Prompt
 sendMessagesOfflineWindowTitle1=Unsent Messages
 sendMessagesOfflineLabel1=You are currently offline. Do you want to go online to send unsent messages?