Bug 1042199 - Show a search box on error pages. r=margaret
authorWes Johnston <wjohnston@mozilla.com>
Tue, 16 Sep 2014 16:34:52 -0700
changeset 3824 c310a4c0db0508ff1aa3f16851ec13af3b404f7d
parent 3823 b18bc5029345cb5c17a13edfc6dda35c07fcab19
child 3825 e1910c1af4d2be3f2acfefd214bcd12ab98de45e
push id1
push useraxel@mozilla.com
push dateTue, 10 Oct 2017 22:14:06 +0000
reviewersmargaret
bugs1042199
Bug 1042199 - Show a search box on error pages. r=margaret X-Channel-Repo: mozilla-central X-Channel-Converted-Revision: a4b979000940db195b4bb2056f5be8646a50e0c7
mobile/overrides/netError.dtd
--- a/mobile/overrides/netError.dtd
+++ b/mobile/overrides/netError.dtd
@@ -12,21 +12,27 @@
 
 <!ENTITY connectionFailure.title "Unable to connect">
 <!ENTITY connectionFailure.longDesc2 "&sharedLongDesc3;">
 
 <!ENTITY deniedPortAccess.title "This address is restricted">
 <!ENTITY deniedPortAccess.longDesc "">
 
 <!ENTITY dnsNotFound.title "Server not found">
-<!ENTITY dnsNotFound.longDesc3 "
+<!-- LOCALIZATION NOTE (dnsNotFound.longDesc4) This string contains markup including widgets for searching
+     or enabling wifi connections. The text inside tags should be localized.  Do not change the ids. -->
+<!ENTITY dnsNotFound.longDesc4 "
 <ul>
   <li>Check the address for typing errors such as
     <strong>ww</strong>.example.com instead of
     <strong>www</strong>.example.com</li>
+    <div id='searchbox'>
+      <input id='searchtext' type='search'></input>
+      <button id='searchbutton'>Search</button>
+    </div>
   <li>If you are unable to load any pages, check your device's data or Wi-Fi connection.
     <button id='wifi'>Enable Wi-Fi</button>
   </li>
 </ul>
 ">
 
 <!ENTITY fileNotFound.title "File not found">
 <!ENTITY fileNotFound.longDesc "
@@ -38,32 +44,40 @@
 
 
 <!ENTITY generic.title "Oops.">
 <!ENTITY generic.longDesc "
 <p>&brandShortName; can't load this page for some reason.</p>
 ">
 
 <!ENTITY malformedURI.title "The address isn't valid">
-<!ENTITY malformedURI.longDesc "
+<!-- LOCALIZATION NOTE (malformedURI.longDesc2) This string contains markup including widgets for searching
+     or enabling wifi connections. The text inside the tags should be localized. Do not touch the ids. -->
+<!ENTITY malformedURI.longDesc2 "
 <ul>
   <li>Web addresses are usually written like
     <strong>http://www.example.com/</strong></li>
+    <div id='searchbox'>
+      <input id='searchtext' type='search'></input>
+      <button id='searchbutton'>Search</button>
+    </div>
   <li>Make sure that you're using forward slashes (i.e.
     <strong>/</strong>).</li>
 </ul>
 ">
 
 <!ENTITY netInterrupt.title "The connection was interrupted">
 <!ENTITY netInterrupt.longDesc2 "&sharedLongDesc3;">
 
 <!ENTITY notCached.title "Document Expired">
 <!ENTITY notCached.longDesc "<p>The requested document is not available in &brandShortName;'s cache.</p><ul><li>As a security precaution, &brandShortName; does not automatically re-request sensitive documents.</li><li>Click Try Again to re-request the document from the website.</li></ul>">
 
 <!ENTITY netOffline.title "Offline mode">
+<!-- LOCALIZATION NOTE (netOffline.longDesc3) This string contains markup including widgets enabling wifi connections.
+     The text inside the tags should be localized. Do not touch the ids. -->
 <!ENTITY netOffline.longDesc3 "
 <ul>
   <li>Try again. &brandShortName; will attempt to open a connection and reload the page.
     <button id='wifi'>Enable Wi-Fi</button>
   </li>
 </ul>
 ">
 
@@ -99,16 +113,18 @@
 <ul>
   <li>Check the proxy settings to make sure that they are correct.</li>
   <li>Contact your network administrator to make sure the proxy server is
     working.</li>
 </ul>
 ">
 
 <!ENTITY proxyResolveFailure.title "Unable to find the proxy server">
+<!-- LOCALIZATION NOTE (proxyResolveFailure.longDesc3) This string contains markup including widgets for enabling wifi connections.
+     The text inside the tags should be localized. Do not touch the ids. -->
 <!ENTITY proxyResolveFailure.longDesc3 "
 <ul>
   <li>Check the proxy settings to make sure that they are correct.</li>
   <li>Check to make sure your device has a working data or Wi-Fi connection.
     <button id='wifi'>Enable Wi-Fi</button>
   </li>
 </ul>
 ">
@@ -143,16 +159,18 @@
 <ul>
   <li>This could be a problem with the server's configuration, or it could be
 someone trying to impersonate the server.</li>
   <li>If you have connected to this server successfully in the past, the error may
 be temporary, and you can try again later.</li>
 </ul>
 ">
 
+<!-- LOCALIZATION NOTE (sharedLongDesc3) This string contains markup including widgets for enabling wifi connections.
+     The text inside the tags should be localized. Do not touch the ids. -->
 <!ENTITY sharedLongDesc3 "
 <ul>
   <li>The site could be temporarily unavailable or too busy. Try again in a few moments.</li>
   <li>If you are unable to load any pages, check your mobile device's data or Wi-Fi connection.
     <button id='wifi'>Enable Wi-Fi</button>
   </li>
 </ul>
 ">