diff --git a/app/views/users/_auto_redirect_home.html.erb b/app/views/users/_auto_redirect_home.html.erb new file mode 100644 index 00000000000..5b91befd432 --- /dev/null +++ b/app/views/users/_auto_redirect_home.html.erb @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/app/views/users/authorize_email.html.erb b/app/views/users/authorize_email.html.erb index a7a6cd2d359..8eef69bc663 100644 --- a/app/views/users/authorize_email.html.erb +++ b/app/views/users/authorize_email.html.erb @@ -5,8 +5,8 @@ <%else%>
- <%= raw t('change_email.please_continue', link: link_to(SiteSetting.title, '/')) %> -
+
+
+
<% if @needs_approval %>
- <%= t 'activation.approval_required' %>
+
<%= t 'activation.approval_required' %>
<% else %> -<%= t('activation.please_continue') %>
+<%= t('activation.continue_button', site_name: SiteSetting.title) -%>
+ <%= render partial: 'auto_redirect_home' %> <% end %> - - <%end%> - diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 7a12f4198b6..a649993eb29 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -389,13 +389,14 @@ en: change_email: confirmed: "Your email has been updated." - please_continue: "Please continue to %{link}" + please_continue: "Continue to %{site_name}" error: "There was an error changing your email address. Perhaps the address is already in use?" activation: action: "Activate your account" already_done: "Sorry, this account confirmation link is no longer valid. Perhaps your account is already active?" - please_continue: "Your new account is confirmed, and you are now logged in. Continue to %{link}" + please_continue: "Your new account is confirmed, and you are now logged in." + continue_button: "Continue to %{site_name}" welcome_to: "Welcome to %{site_name}!" approval_required: "A moderator must manually approve your new account before you can access this forum. You'll get an email when your account is approved!"