diff options
author | Martin Wortschack <mwortschack@gitlab.com> | 2019-04-08 13:13:19 +0200 |
---|---|---|
committer | Martin Wortschack <mwortschack@gitlab.com> | 2019-04-08 13:13:29 +0200 |
commit | 6a0035d273deffd67506230d3776812e045d59cc (patch) | |
tree | f9b9787d3761fc0456b28a4656453c366a610c20 /app/controllers/passwords_controller.rb | |
parent | 942ce36a72b460f8cac2091008869d845fd365e3 (diff) | |
download | gitlab-ce-mw-i18n-flashes.tar.gz |
Externalize strings in flash messagesmw-i18n-flashes
- Externalize strings in controllers
- Update PO file
Diffstat (limited to 'app/controllers/passwords_controller.rb')
-rw-r--r-- | app/controllers/passwords_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/passwords_controller.rb b/app/controllers/passwords_controller.rb index 28f113b5cbe..77de5cb45c9 100644 --- a/app/controllers/passwords_controller.rb +++ b/app/controllers/passwords_controller.rb @@ -22,7 +22,7 @@ class PasswordsController < Devise::PasswordsController ).first_or_initialize unless user.reset_password_period_valid? - flash[:alert] = 'Your password reset token has expired.' + flash[:alert] = _('Your password reset token has expired.') redirect_to(new_user_password_url(user_email: user['email'])) end end @@ -52,7 +52,7 @@ class PasswordsController < Devise::PasswordsController end redirect_to after_sending_reset_password_instructions_path_for(resource_name), - alert: "Password authentication is unavailable." + alert: _("Password authentication is unavailable.") end def throttle_reset |