Browse Source

Resend code localization

master
Dmitrii Golub 9 years ago
parent
commit
60f64680df
  1. 2
      app/controllers/devise/two_factor_authentication_controller.rb
  2. 1
      config/locales/en.yml
  3. 1
      config/locales/fr.yml
  4. 1
      config/locales/ru.yml

2
app/controllers/devise/two_factor_authentication_controller.rb

@ -17,7 +17,7 @@ class Devise::TwoFactorAuthenticationController < DeviseController
def resend_code
resource.send_two_factor_authentication_code
redirect_to user_two_factor_authentication_path, notice: "Your authentication code has been sent."
redirect_to user_two_factor_authentication_path, notice: I18n.t('devise.two_factor_authentication.code_has_been_sent')
end
private

1
config/locales/en.yml

@ -5,3 +5,4 @@ en:
attempt_failed: "Attempt failed."
max_login_attempts_reached: "Access completely denied as you have reached your attempts limit"
contact_administrator: "Please contact your system administrator."
code_has_been_sent: "Your authentication code has been sent."

1
config/locales/fr.yml

@ -5,3 +5,4 @@ fr:
attempt_failed: "La connexion a échoué."
max_login_attempts_reached: "Limite de tentatives atteinte, accès refusé."
contact_administrator: "Merci de contacter votre administrateur système."
code_has_been_sent: "Votre code de validation envoyé."

1
config/locales/ru.yml

@ -5,3 +5,4 @@ ru:
attempt_failed: "Неверный код."
max_login_attempts_reached: "Доступ заблокирован. Превышено число попыток авторизации"
contact_administrator: "Пожалуйста, свяжитесь с системным администратором."
code_has_been_sent: "Ваш персональный код был отправлен."

Loading…
Cancel
Save