Commit 17429700 authored by Nikola Milojevic's avatar Nikola Milojevic

Merge branch 'issue/spam-check-message' into 'master'

Use translation for spam check error

See merge request gitlab-org/gitlab!84600
parents df7ccad8 b115cfcc
...@@ -84,7 +84,8 @@ module Spammable ...@@ -84,7 +84,8 @@ module Spammable
end end
def unrecoverable_spam_error! 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 end
def spammable_entity_type def spammable_entity_type
......
...@@ -43513,6 +43513,9 @@ msgstr "" ...@@ -43513,6 +43513,9 @@ msgstr ""
msgid "Your %{plan} subscription expires on %{expiry_date}" msgid "Your %{plan} subscription expires on %{expiry_date}"
msgstr "" 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." msgid "Your %{spammable_entity_type} has been recognized as spam. Please, change the content or solve the reCAPTCHA to proceed."
msgstr "" 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