From 2efe0442bf52ad4595e4a290ef24edea4fcbe20b Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 27 Apr 2017 11:45:49 -0400 Subject: [PATCH] FIX: Messed up i18n key --- app/helpers/email_helper.rb | 2 +- app/mailers/invite_mailer.rb | 2 +- config/locales/server.en.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/email_helper.rb b/app/helpers/email_helper.rb index c8e5cd9f8b..620f1fe94c 100644 --- a/app/helpers/email_helper.rb +++ b/app/helpers/email_helper.rb @@ -13,7 +13,7 @@ module EmailHelper end def private_topic_title(topic) - I18n.t("system_messages.secure_topic_title", id: topic.id) + I18n.t("system_messages.private_topic_title", id: topic.id) end def email_topic_link(topic) diff --git a/app/mailers/invite_mailer.rb b/app/mailers/invite_mailer.rb index e39b71ce0d..3614123716 100644 --- a/app/mailers/invite_mailer.rb +++ b/app/mailers/invite_mailer.rb @@ -33,7 +33,7 @@ class InviteMailer < ActionMailer::Base topic_title = first_topic.try(:title) if SiteSetting.private_email? - topic_title = I18n.t("system_messages.secure_topic_title", id: first_topic.id) + topic_title = I18n.t("system_messages.private_topic_title", id: first_topic.id) topic_excerpt = "" end diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 426ae9289a..8b851a1c77 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -1938,7 +1938,7 @@ en: other: "This topic is temporarily closed for %{count} hours due to a large number of community flags." system_messages: - secure_topic_title: "Topic #%{id}" + private_topic_title: "Topic #%{id}" contents_hidden: "Please visit the post to see its contents." post_hidden: