Commit b115cfcc authored by Song Huang's avatar Song Huang

Use translation for spam check error

parent ef4b7929
......@@ -84,7 +84,8 @@ module Spammable
end
def unrecoverable_spam_error!
self.errors.add(:base, "Your #{spammable_entity_type} has been recognized as spam and has been discarded.")
self.errors.add(:base, _("Your %{spammable_entity_type} has been recognized as spam and has been discarded.") \
% { spammable_entity_type: spammable_entity_type })
end
def spammable_entity_type
......
......@@ -43417,6 +43417,9 @@ msgstr ""
msgid "Your %{plan} subscription expires on %{expiry_date}"
msgstr ""
msgid "Your %{spammable_entity_type} has been recognized as spam and has been discarded."
msgstr ""
msgid "Your %{spammable_entity_type} has been recognized as spam. Please, change the content or solve the reCAPTCHA to proceed."
msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment