From 8f157ab2b19cec2cfe4455772ea5a76b1358126f Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 25 Nov 2020 14:02:49 +0000 Subject: [PATCH] Rename subject translation key, for consistency --- app/mailers/user_mailer.rb | 2 +- config/locales/en.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index e0f3bb5f6..bb4412e8a 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -83,7 +83,7 @@ class UserMailer < ApplicationMailer mail :from => from_address(message.sender.display_name, "m", message.id, message.digest), :to => message.recipient.email, - :subject => I18n.t("user_mailer.message_notification.subject_header", :subject => message.title) + :subject => t(".subject", :message_title => message.title) end end diff --git a/config/locales/en.yml b/config/locales/en.yml index c7613cfd4..8ceb04f8e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1416,7 +1416,7 @@ en: header: "%{from_user} has commented on the OpenStreetMap diary entry with the subject %{subject}:" footer: "You can also read the comment at %{readurl} and you can comment at %{commenturl} or send a message to the author at %{replyurl}" message_notification: - subject_header: "[OpenStreetMap] %{subject}" + subject: "[OpenStreetMap] %{message_title}" hi: "Hi %{to_user}," header: "%{from_user} has sent you a message through OpenStreetMap with the subject %{subject}:" footer_html: "You can also read the message at %{readurl} and you can send a message to the author at %{replyurl}" -- 2.45.1