Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b115cfcc
Commit
b115cfcc
authored
Apr 07, 2022
by
Song Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use translation for spam check error
parent
ef4b7929
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
app/models/concerns/spammable.rb
app/models/concerns/spammable.rb
+2
-1
locale/gitlab.pot
locale/gitlab.pot
+3
-0
No files found.
app/models/concerns/spammable.rb
View file @
b115cfcc
...
...
@@ -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
...
...
locale/gitlab.pot
View file @
b115cfcc
...
...
@@ -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 ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment