diff options
author | Martin Wortschack <mwortschack@gitlab.com> | 2019-04-08 17:17:45 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-04-08 17:17:45 +0300 |
commit | 76e8960f4ab30e91e7e9aca0ae82e10ba23d460d (patch) | |
tree | b8bf779e7d08f261e5ef162a2ba01b08eda65d48 /app/controllers/abuse_reports_controller.rb | |
parent | 34f68b3e35bbfa35cb831c16643eadb4dda70039 (diff) |
Externalize strings in flash messages
- Externalize strings in controllers
- Update PO file
Diffstat (limited to 'app/controllers/abuse_reports_controller.rb')
-rw-r--r-- | app/controllers/abuse_reports_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/abuse_reports_controller.rb b/app/controllers/abuse_reports_controller.rb index 68e14f0c2e5..7d8016f763d 100644 --- a/app/controllers/abuse_reports_controller.rb +++ b/app/controllers/abuse_reports_controller.rb @@ -16,7 +16,7 @@ class AbuseReportsController < ApplicationController if @abuse_report.save @abuse_report.notify - message = "Thank you for your report. A GitLab administrator will look into it shortly." + message = _("Thank you for your report. A GitLab administrator will look into it shortly.") redirect_to @abuse_report.user, notice: message else render :new @@ -37,9 +37,9 @@ class AbuseReportsController < ApplicationController @user = User.find_by(id: params[:user_id]) if @user.nil? - redirect_to root_path, alert: "Cannot create the abuse report. The user has been deleted." + redirect_to root_path, alert: _("Cannot create the abuse report. The user has been deleted.") elsif @user.blocked? - redirect_to @user, alert: "Cannot create the abuse report. This user has been blocked." + redirect_to @user, alert: _("Cannot create the abuse report. This user has been blocked.") end end # rubocop: enable CodeReuse/ActiveRecord |