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
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
[:bcc, :cc, :reply_to, :sender, :to].each do |k|