Bug 1365259 - Update the result not found message. draft
authorEvan Tseng <evan@tseng.io>
Wed, 17 May 2017 18:36:54 +0800
changeset 579547 b0b41110cb7b71ad8ef9964c974e3663887d82b6
parent 579118 41958333867b0f537271dbd4cb4ba9e8a67a85a8
child 629032 f69e9cfb7439333faa22c5e16bf2c2229cecb73f
push id59280
push userbmo:evan@tseng.io
push dateWed, 17 May 2017 11:51:17 +0000
bugs1365259
milestone55.0a1
Bug 1365259 - Update the result not found message. 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)