Bug 1365259 - Update the result not found message. r=mconley
authorEvan Tseng <evan@tseng.io>
Wed, 17 May 2017 18:36:54 +0800
changeset 358954 51dc323da1c3baea150a79b4bb1c157dfbee2713
parent 358953 d18aa0ba5171b293f46fc5f095859d960a55c303
child 358955 d7b25abd4866f6ddac694ad2dd11d160e0ae7a53
push id42902
push usercbook@mozilla.com
push dateThu, 18 May 2017 07:15:47 +0000
treeherderautoland@51dc323da1c3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1365259
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1365259 - Update the result not found message. r=mconley MozReview-Commit-ID: 3vmUP0GVbgy
browser/components/preferences/in-content/findInPage.js
browser/locales/en-US/chrome/browser/preferences/preferences.properties
--- a/browser/components/preferences/in-content/findInPage.js
+++ b/browser/components/preferences/in-content/findInPage.js
@@ -226,17 +226,17 @@ var gSearchResultsPane = {
       srHeader.hidden = false;
 
       if (!resultsFound) {
         let noResultsEl = document.querySelector(".no-results-message");
         noResultsEl.hidden = false;
 
         let strings = this.strings;
         document.getElementById("sorry-message").textContent =
-          strings.getFormattedString("searchResults.sorryMessage", [query]);
+          strings.getFormattedString("searchResults.sorryMessage2", [query]);
         let brandName = document.getElementById("bundleBrand").getString("brandShortName");
         document.getElementById("need-help").innerHTML =
           strings.getFormattedString("searchResults.needHelp", [brandName]);
       }
     } else {
       this.searchResultsCategory.hidden = true;
       document.getElementById("sorry-message").textContent = "";
       // Going back to General when cleared
--- a/browser/locales/en-US/chrome/browser/preferences/preferences.properties
+++ b/browser/locales/en-US/chrome/browser/preferences/preferences.properties
@@ -252,14 +252,14 @@ removeContainerAlertTitle=Remove This Co
 # #S is the number of container tabs
 removeContainerMsg=If you remove this Container now, #S container tab will be closed. Are you sure you want to remove this Container?;If you remove this Container now, #S container tabs will be closed. Are you sure you want to remove this Container?
 
 removeContainerOkButton=Remove this Container
 removeContainerButton2=Don’t remove this Container
 
 # Search Results Pane
 # LOCALIZATION NOTE %S will be replaced by the word being searched
-searchResults.sorryMessage=Sorry! No results were found for “%S”
+searchResults.sorryMessage2=Sorry! There are no results in Preferences for “%S”.
 # LOCALIZATION NOTE %S gets replaced with the browser name
 searchResults.needHelp=Need help? Visit <html:a id="need-help-link">%S Support</html:a>
 
 # LOCALIZATION NOTE %S is the default value of the `dom.ipc.processCount` pref.
 defaultContentProcessCount=%S (default)