fix issue with the subject of the invitation email

This commit is contained in:
Carl Chenet 2016-11-26 13:42:42 +01:00
parent 8f46a6254c
commit c485972487
3 changed files with 7 additions and 2 deletions

View file

@ -7,8 +7,7 @@ class InvitationMailer < ActionMailer::Base
mail(
:to => invitation.email,
subject: "[#{Rails.application.name}] You have been invited to " <<
Rails.application.name
subject: I18n.t 'mailers.invitation_mailer.subject', :appname => "#{Rails.application.name}"
)
end
end

View file

@ -5,6 +5,9 @@ en:
time:
formats:
default: "%Y-%m-%d %H:%M:%S"
mailers:
invitation_mailer:
subject: "[%{appname}] You have been invited to %{appname}"
models:
moderation:
storyeditedby: "Your story has been edited by "

View file

@ -17,6 +17,9 @@ fr:
time:
formats:
default: "%d-%m-%Y %H:%M:%S"
mailers:
invitation_mailer:
subject: "[%{appname}] Vous avez été invité au %{appname}"
models:
moderation:
storyeditedby: "Votre info a été éditée par "