diff options
author | antony liu <sun_apollo@yeah.net> | 2019-06-10 11:41:22 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-06-10 11:41:22 +0300 |
commit | e33713136df1e66d850fa533a7731c9dd6c6ace8 (patch) | |
tree | 3d0e781371b28a022c44b6e23fd00686819518d2 /app/controllers | |
parent | 25420de654b5581ccf6254be769a5e031446eced (diff) |
Externalize strings of email page in user profile
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/profiles/emails_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/profiles/emails_controller.rb b/app/controllers/profiles/emails_controller.rb index 503eda250b4..f666a1150a6 100644 --- a/app/controllers/profiles/emails_controller.rb +++ b/app/controllers/profiles/emails_controller.rb @@ -28,9 +28,9 @@ class Profiles::EmailsController < Profiles::ApplicationController def resend_confirmation_instructions if Emails::ConfirmService.new(current_user, user: current_user).execute(@email) - flash[:notice] = "Confirmation email sent to #{@email.email}" + flash[:notice] = _("Confirmation email sent to %{email}") % { email: @email.email } else - flash[:alert] = "There was a problem sending the confirmation email" + flash[:alert] = _("There was a problem sending the confirmation email") end redirect_to profile_emails_url |