fix missing i18n for email for replies/mentions
This commit is contained in:
parent
6ae0051062
commit
9a8ef59f80
|
@ -8,8 +8,7 @@ class EmailReply < ActionMailer::Base
|
||||||
|
|
||||||
mail(
|
mail(
|
||||||
:to => user.email,
|
:to => user.email,
|
||||||
:subject => "[#{Rails.application.name}] Reply from " <<
|
:subject => I18n.t('mailers.email_reply.replysubject', :appname => "#{Rails.application.name}", :author => "#{comment.user.username}", :story => "#{comment.story.title}")
|
||||||
"#{comment.user.username} on #{comment.story.title}"
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -19,8 +18,7 @@ class EmailReply < ActionMailer::Base
|
||||||
|
|
||||||
mail(
|
mail(
|
||||||
:to => user.email,
|
:to => user.email,
|
||||||
:subject => "[#{Rails.application.name}] Mention from " <<
|
:subject => I18n.t('mailers.email_reply.mentionsubject', :appname => "#{Rails.application.name}", :author => "#{comment.user.username}", :story => "#{comment.story.title}")
|
||||||
"#{comment.user.username} on #{comment.story.title}"
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,10 +6,13 @@ en:
|
||||||
formats:
|
formats:
|
||||||
default: "%Y-%m-%d %H:%M:%S"
|
default: "%Y-%m-%d %H:%M:%S"
|
||||||
mailers:
|
mailers:
|
||||||
invitation_mailer:
|
|
||||||
subject: "[%{appname}] You have been invited to %{appname}"
|
|
||||||
email_message:
|
email_message:
|
||||||
subject: "[%{appname}] Private Message from %{author}: %{subject}"
|
subject: "[%{appname}] Private Message from %{author}: %{subject}"
|
||||||
|
email_reply:
|
||||||
|
replysubject: "[%{appname}] Reply from %{author} on %{story}"
|
||||||
|
mentionsubject: "[%{appname}] Mention from %{author} on %{story}"
|
||||||
|
invitation_mailer:
|
||||||
|
subject: "[%{appname}] You have been invited to %{appname}"
|
||||||
models:
|
models:
|
||||||
comment:
|
comment:
|
||||||
commentcannotbeblank: "A comment cannot be blank."
|
commentcannotbeblank: "A comment cannot be blank."
|
||||||
|
|
|
@ -18,10 +18,13 @@ fr:
|
||||||
formats:
|
formats:
|
||||||
default: "%d-%m-%Y %H:%M:%S"
|
default: "%d-%m-%Y %H:%M:%S"
|
||||||
mailers:
|
mailers:
|
||||||
invitation_mailer:
|
|
||||||
subject: "[%{appname}] Vous avez été invité au %{appname}"
|
|
||||||
email_message:
|
email_message:
|
||||||
subject: "[%{appname}] Message privé de %{author} : %{subject}"
|
subject: "[%{appname}] Message privé de %{author} : %{subject}"
|
||||||
|
email_reply:
|
||||||
|
replysubject: "[%{appname}] Réponse de %{author} sur %{story}"
|
||||||
|
mentionsubject: "[%{appname}] %{author} vous a mentionné dans %{story}"
|
||||||
|
invitation_mailer:
|
||||||
|
subject: "[%{appname}] Vous avez été invité au %{appname}"
|
||||||
models:
|
models:
|
||||||
comment:
|
comment:
|
||||||
commentcannotbeblank: "Un commentaire ne peut pas être vide."
|
commentcannotbeblank: "Un commentaire ne peut pas être vide."
|
||||||
|
|
Loading…
Reference in a new issue