From 60f64680df3062e803ab4f1db4adfa084057c93c Mon Sep 17 00:00:00 2001 From: Dmitrii Golub Date: Sun, 14 Feb 2016 23:39:25 +0300 Subject: [PATCH] Resend code localization --- app/controllers/devise/two_factor_authentication_controller.rb | 2 +- config/locales/en.yml | 1 + config/locales/fr.yml | 1 + config/locales/ru.yml | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/devise/two_factor_authentication_controller.rb b/app/controllers/devise/two_factor_authentication_controller.rb index 3e3d541..eb3f50f 100644 --- a/app/controllers/devise/two_factor_authentication_controller.rb +++ b/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 diff --git a/config/locales/en.yml b/config/locales/en.yml index 7883494..37ff1df 100644 --- a/config/locales/en.yml +++ b/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." diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 488c227..ccb2913 100644 --- a/config/locales/fr.yml +++ b/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é." diff --git a/config/locales/ru.yml b/config/locales/ru.yml index e9cd174..3c85932 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -5,3 +5,4 @@ ru: attempt_failed: "Неверный код." max_login_attempts_reached: "Доступ заблокирован. Превышено число попыток авторизации" contact_administrator: "Пожалуйста, свяжитесь с системным администратором." + code_has_been_sent: "Ваш персональный код был отправлен."