Bug 1256246 - Improve prompt for loading an add-on from directory. r=ochameau
authorKumar McMillan <kumar.mcmillan@gmail.com>
Mon, 14 Mar 2016 15:23:44 +0100
changeset 288525 4dfa6cdb7faa89904a3bda31f5a8890cac4481c9
parent 288524 ce916d9b26697a9cb9539562127715053e30184f
child 288526 282de7d09bce1fd2216f93b91812cb4389c15721
push id18159
push userryanvm@gmail.com
push dateMon, 14 Mar 2016 15:59:30 +0000
treeherderfx-team@d50f024f55d8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs1256246
milestone48.0a1
Bug 1256246 - Improve prompt for loading an add-on from directory. r=ochameau MozReview-Commit-ID: oVBrMvK3nQ
devtools/client/aboutdebugging/components/addons-controls.js
devtools/client/locales/en-US/aboutdebugging.properties
--- a/devtools/client/aboutdebugging/components/addons-controls.js
+++ b/devtools/client/aboutdebugging/components/addons-controls.js
@@ -55,17 +55,17 @@ module.exports = createClass({
     let enabled = event.target.checked;
     Services.prefs.setBoolPref("devtools.chrome.enabled", enabled);
     Services.prefs.setBoolPref("devtools.debugger.remote-enabled", enabled);
   },
 
   loadAddonFromFile() {
     let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
     fp.init(window,
-      Strings.GetStringFromName("selectAddonFromFile"),
+      Strings.GetStringFromName("selectAddonFromFile2"),
       Ci.nsIFilePicker.modeOpen);
     let res = fp.show();
     if (res == Ci.nsIFilePicker.returnCancel || !fp.file) {
       return;
     }
     let file = fp.file;
     // AddonManager.installTemporaryAddon accepts either
     // addon directory or final xpi file.
--- a/devtools/client/locales/en-US/aboutdebugging.properties
+++ b/devtools/client/locales/en-US/aboutdebugging.properties
@@ -7,17 +7,17 @@ push = Push
 start = Start
 
 addons = Add-ons
 addonDebugging.label = Enable add-on debugging
 addonDebugging.tooltip = Turning this on will allow you to debug add-ons and various other parts of the browser chrome
 addonDebugging.moreInfo = more info
 loadTemporaryAddon = Load Temporary Add-on
 extensions = Extensions
-selectAddonFromFile = Select Add-on Directory or XPI File
+selectAddonFromFile2 = Select Manifest File or Package (.xpi)
 
 workers = Workers
 serviceWorkers = Service Workers
 sharedWorkers = Shared Workers
 otherWorkers = Other Workers
 
 nothing = Nothing yet.