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|

View File

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

View File

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

View File

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

View File

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