From ac3a96295d90b59dd05854c542b545d5b873c17b Mon Sep 17 00:00:00 2001
From: Lloyd Hilaiel <lloyd@hilaiel.com>
Date: Sat, 30 Jun 2012 19:21:36 +0100
Subject: [PATCH] javascript logic inside gettext() breaks string extraction,
 fix it

---
 resources/static/dialog/views/set_password.ejs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/resources/static/dialog/views/set_password.ejs b/resources/static/dialog/views/set_password.ejs
index 8f0814203..87bc118de 100644
--- a/resources/static/dialog/views/set_password.ejs
+++ b/resources/static/dialog/views/set_password.ejs
@@ -16,7 +16,6 @@
 
 
           <li>
-
               <% if (password_reset) { %>
                 <label for="password"><%= format(gettext("Create a new password to use with %s."), ["Persona"]) %></label>
               <% } else { %>
@@ -55,7 +54,7 @@
 
       <p class="submit cf buttonrow">
           <button id="<%= password_reset ? "password_reset" : "verify_user" %>">
-            <%= gettext(password_reset ? 'reset password' : 'done') %>
+            <%= (password_reset ? gettext('reset password') : gettext('done')) %>
           </button>
 
           <% if(cancelable) { %>
-- 
GitLab