Make salutation of email localizable (#4454)

th-downstream
unarist 7 years ago committed by Eugen Rochko
parent 2032e2500c
commit 15a8d9b0ca

@ -1,4 +1,4 @@
<%= display_name(@me) %>,
<%= raw t('application_mailer.salutation', name: display_name(@me)) %>
<%= raw t('admin_mailer.new_report.body', target: @report.target_account.acct, reporter: @report.account.acct) %>

@ -1,4 +1,4 @@
<%= display_name(@me) %>,
<%= raw t('application_mailer.salutation', name: display_name(@me)) %>
<%= raw t('notification_mailer.digest.body', since: l(@since), instance: root_url) %>
<% @notifications.each do |notification| %>

@ -1,4 +1,4 @@
<%= display_name(@me) %>,
<%= raw t('application_mailer.salutation', name: display_name(@me)) %>
<%= raw t('notification_mailer.favourite.body', name: @account.acct) %>

@ -1,4 +1,4 @@
<%= display_name(@me) %>,
<%= raw t('application_mailer.salutation', name: display_name(@me)) %>
<%= raw t('notification_mailer.follow.body', name: @account.acct) %>

@ -1,4 +1,4 @@
<%= display_name(@me) %>,
<%= raw t('application_mailer.salutation', name: display_name(@me)) %>
<%= raw t('notification_mailer.follow_request.body', name: @account.acct) %>

@ -1,4 +1,4 @@
<%= display_name(@me) %>,
<%= raw t('application_mailer.salutation', name: display_name(@me)) %>
<%= raw t('notification_mailer.mention.body', name: @status.account.acct) %>

@ -1,4 +1,4 @@
<%= display_name(@me) %>,
<%= raw t('application_mailer.salutation', name: display_name(@me)) %>
<%= raw t('notification_mailer.reblog.body', name: @account.acct) %>

@ -215,6 +215,7 @@ en:
body: "%{reporter} has reported %{target}"
subject: New report for %{instance} (#%{id})
application_mailer:
salutation: '%{name},'
settings: 'Change e-mail preferences: %{link}'
signature: Mastodon notifications from %{instance}
view: 'View:'

Loading…
Cancel
Save