summaryrefslogtreecommitdiff
path: root/app/controllers/admin/spam_logs_controller.rb
diff options
context:
space:
mode:
authorMartin Wortschack <mwortschack@gitlab.com>2019-03-21 14:31:05 +0100
committerMartin Wortschack <mwortschack@gitlab.com>2019-03-21 14:31:34 +0100
commit8ce09a1d4292f474a9c11e50e4a24422b8e42390 (patch)
tree053271240e3ba7a416e754e8d89ed2aa943f19d8 /app/controllers/admin/spam_logs_controller.rb
parent1614089fcfe71bd2ff3fafc787195de380b9b6a1 (diff)
downloadgitlab-ce-8ce09a1d4292f474a9c11e50e4a24422b8e42390.tar.gz
Externalize strings in admin controllers
- Update PO file
Diffstat (limited to 'app/controllers/admin/spam_logs_controller.rb')
-rw-r--r--app/controllers/admin/spam_logs_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/admin/spam_logs_controller.rb b/app/controllers/admin/spam_logs_controller.rb
index 18d22c95b61..45cf0d3207e 100644
--- a/app/controllers/admin/spam_logs_controller.rb
+++ b/app/controllers/admin/spam_logs_controller.rb
@@ -14,7 +14,7 @@ class Admin::SpamLogsController < Admin::ApplicationController
spam_log.remove_user(deleted_by: current_user)
redirect_to admin_spam_logs_path,
status: 302,
- notice: "User #{spam_log.user.username} was successfully removed."
+ notice: _('User %{username} was successfully removed.') % { username: spam_log.user.username }
else
spam_log.destroy
head :ok
@@ -25,9 +25,9 @@ class Admin::SpamLogsController < Admin::ApplicationController
spam_log = SpamLog.find(params[:id])
if HamService.new(spam_log).mark_as_ham!
- redirect_to admin_spam_logs_path, notice: 'Spam log successfully submitted as ham.'
+ redirect_to admin_spam_logs_path, notice: _('Spam log successfully submitted as ham.')
else
- redirect_to admin_spam_logs_path, alert: 'Error with Akismet. Please check the logs for more info.'
+ redirect_to admin_spam_logs_path, alert: _('Error with Akismet. Please check the logs for more info.')
end
end
end