Make "via Foodsoft" in mail From-header translateable

This commit is contained in:
Patrick Gansterer 2017-10-02 15:59:20 +02:00
parent 578e929e0d
commit 287cce2e92
5 changed files with 5 additions and 1 deletions

View file

@ -81,7 +81,7 @@ class Mailer < ActionMailer::Base
if args[:from].is_a? User if args[:from].is_a? User
args[:reply_to] = args[:from] unless args[:reply_to] args[:reply_to] = args[:from] unless args[:reply_to]
args[:from] = "#{show_user args[:from]} via #{I18n.t('layouts.foodsoft')} <#{FoodsoftConfig[:email_sender]}>" args[:from] = "#{I18n.t('mailer.from_via_foodsoft', name: show_user(args[:from]))} <#{FoodsoftConfig[:email_sender]}>"
end end
[:bcc, :cc, :reply_to, :sender, :to].each do |k| [:bcc, :cc, :reply_to, :sender, :to].each do |k|

View file

@ -1176,6 +1176,7 @@ de:
feedback: feedback:
header: "%{user} schrieb am %{date}:" header: "%{user} schrieb am %{date}:"
subject: Feedback zur Foodsoft subject: Feedback zur Foodsoft
from_via_foodsoft: "%{name} via Foodsoft"
invite: invite:
subject: Einladung in die Foodcoop subject: Einladung in die Foodcoop
text: | text: |

View file

@ -1178,6 +1178,7 @@ en:
feedback: feedback:
header: "%{user} wrote at %{date}:" header: "%{user} wrote at %{date}:"
subject: Feedback for Foodsoft subject: Feedback for Foodsoft
from_via_foodsoft: "%{name} via Foodsoft"
invite: invite:
subject: Invitation to the Foodcoop subject: Invitation to the Foodcoop
text: | text: |

View file

@ -1187,6 +1187,7 @@ fr:
feedback: feedback:
header: 'Le %{date}, %{user} a écrit:' header: 'Le %{date}, %{user} a écrit:'
subject: Feedback pour Foodsoft subject: Feedback pour Foodsoft
from_via_foodsoft: "%{name} via Foodsoft"
invite: invite:
subject: Invitation à participer à une Bouffecoop subject: Invitation à participer à une Bouffecoop
text: |- text: |-

View file

@ -1170,6 +1170,7 @@ nl:
feedback: feedback:
header: "%{user} schreef op %{date}:" header: "%{user} schreef op %{date}:"
subject: Feedback voor Foodsoft subject: Feedback voor Foodsoft
from_via_foodsoft: "%{name} via Foodsoft"
invite: invite:
subject: Uitnodiging voor de foodcoop subject: Uitnodiging voor de foodcoop
text: |- text: |-