Browse Source

Merge pull request #69 from vayan/feature/change-wording-in-mailer-view

Update default devise wording to include reference to Mastodon
closed-social-glitch-2
Eugen 7 years ago
committed by GitHub
parent
commit
3298c7e1c8
4 changed files with 7 additions and 7 deletions
  1. +1
    -1
      app/views/auth/mailer/confirmation_instructions.html.erb
  2. +1
    -1
      app/views/auth/mailer/password_change.html.erb
  3. +1
    -1
      app/views/auth/mailer/reset_password_instructions.html.erb
  4. +4
    -4
      config/locales/devise.en.yml

+ 1
- 1
app/views/auth/mailer/confirmation_instructions.html.erb View File

@ -1,5 +1,5 @@
<p>Welcome <%= @resource.email %>!</p> <p>Welcome <%= @resource.email %>!</p>
<p>You can confirm your account email through the link below:</p>
<p>You can confirm your Mastodon account email through the link below:</p>
<p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></p> <p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></p>

+ 1
- 1
app/views/auth/mailer/password_change.html.erb View File

@ -1,3 +1,3 @@
<p>Hello <%= @resource.email %>!</p> <p>Hello <%= @resource.email %>!</p>
<p>We're contacting you to notify you that your password has been changed.</p>
<p>We're contacting you to notify you that your password on Mastodon has been changed.</p>

+ 1
- 1
app/views/auth/mailer/reset_password_instructions.html.erb View File

@ -1,6 +1,6 @@
<p>Hello <%= @resource.email %>!</p> <p>Hello <%= @resource.email %>!</p>
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
<p>Someone has requested a link to change your password on Mastodon. You can do this through the link below.</p>
<p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p> <p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>

+ 4
- 4
config/locales/devise.en.yml View File

@ -18,13 +18,13 @@ en:
unconfirmed: "You have to confirm your email address before continuing." unconfirmed: "You have to confirm your email address before continuing."
mailer: mailer:
confirmation_instructions: confirmation_instructions:
subject: "Confirmation instructions"
subject: "Mastodon: Confirmation instructions"
reset_password_instructions: reset_password_instructions:
subject: "Reset password instructions"
subject: "Mastodon: Reset password instructions"
unlock_instructions: unlock_instructions:
subject: "Unlock instructions"
subject: "Mastodon: Unlock instructions"
password_change: password_change:
subject: "Password Changed"
subject: "Mastodon: Password Changed"
omniauth_callbacks: omniauth_callbacks:
failure: "Could not authenticate you from %{kind} because \"%{reason}\"." failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
success: "Successfully authenticated from %{kind} account." success: "Successfully authenticated from %{kind} account."

Loading…
Cancel
Save