From 1170cb582d97a20752a083948d2231fee639253a Mon Sep 17 00:00:00 2001
From: Shane Tomlinson <stomlinson@mozilla.com>
Date: Thu, 9 Feb 2012 11:03:12 +0000
Subject: [PATCH] Adding gettext around the user facing strings.  Changing
 error copy.

close #1062
close #1081
---
 resources/static/dialog/views/error.ejs | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/resources/static/dialog/views/error.ejs b/resources/static/dialog/views/error.ejs
index ababedce7..b21fa0afb 100644
--- a/resources/static/dialog/views/error.ejs
+++ b/resources/static/dialog/views/error.ejs
@@ -4,21 +4,27 @@
 
 
   <% if (typeof network !== "undefined" && network.status == 503) { %>
-    <h2 id="error_503">We are very sorry, the server is under extreme load!</h2>
+    <h2 id="error_503">
+      <%= gettext("We are very sorry, the server is under extreme load!") %>
+    </h2>
   <% } else { %>
-    <h2 id="defaultError">We are very sorry, there has been an error!</h2>
+    <h2 id="defaultError">
+      <%= gettext("We are very sorry, there has been an error!") %>
+    </h2>
   <% } %>
 
   <p>
   <% if (typeof dialog !== "undefined" && dialog !== false) { %>
-    To retry, you will have to reload the page and try again.  More info can be found by opening the expanded info below.
+    <%= gettext("To retry, you will have to reload the page and try again.") %>
   <% } else { %>
-    To retry, you will have to close BrowserID and try again.  More info can be found by opening the expanded info below.
+    <%= gettext("To retry, you will have to close this window and try again.") %>
   <% } %>
   </p>
 
   <% if(typeof action !== "undefined" || typeof network !== "undefined") { %>
-    <a href="#" id="openMoreInfo">See more info</a>
+    <a href="#" id="openMoreInfo">
+      <%= gettext("See more info") %>
+    </a>
 
     <ul id="moreInfo">
       <% if (typeof action !== "undefined") { %>
-- 
GitLab