Skip to content

Commit

Permalink
added email subject line translations to monthly email
Browse files Browse the repository at this point in the history
  • Loading branch information
mz99 committed Jul 31, 2018
1 parent ae239d2 commit 1e8a1e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/app/mailers/user_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ def auth0_migration(user)

def monthly_news(user)
@user = user
mail(to: @user.email, subject: 'New happenings at Rundfunk Mitbestimmen')
mail(to: @user.email, subject: t(''))
end
end
4 changes: 3 additions & 1 deletion backend/config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ de:
has_one: Datensatz kann nicht gelöscht werden, da ein abhängiger %{record}-Datensatz
existiert.
has_many: Datensatz kann nicht gelöscht werden, da abhängige %{record} existieren.
user_mailer:
monthly_news:
subject: Neue Ereignisse im Rundfunk Mitbestimmen
date:
abbr_day_names:
- So
Expand Down Expand Up @@ -234,4 +237,3 @@ de:
long: "%A, %d. %B %Y, %H:%M Uhr"
short: "%d. %B, %H:%M Uhr"
pm: nachmittags

3 changes: 3 additions & 0 deletions backend/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ en:
attributes:
amount:
total: Total amount of %{sum} exceeds the available budget of %{budget}
user_mailer:
monthly_news:
subject: New happenings in Rundfunk Mitbestimmen

0 comments on commit 1e8a1e6

Please sign in to comment.