Browse Source

Merge pull request #13 from edg3r/add_locales

Add ru locales and locales for max_limit_reached view
master
Dmitrii Golub 11 years ago
parent
commit
93b1a1596a
  1. 4
      app/views/devise/two_factor_authentication/max_login_attempts_reached.html.erb
  2. 2
      config/locales/en.yml
  3. 6
      config/locales/ru.yml

4
app/views/devise/two_factor_authentication/max_login_attempts_reached.html.erb

@ -1,3 +1,3 @@
<h2>Access completely denied as you have reached your attempts limit = <%= @limit %>.</h2>
<p>Please contact your system administrator.</p>
<h2><%= I18n.t("devise.two_factor_authentication.max_login_attempts_reached") %> = <%= @limit %>.</h2>
<p><%= I18n.t("devise.two_factor_authentication.contact_administrator") %></p>

2
config/locales/en.yml

@ -3,3 +3,5 @@ en:
two_factor_authentication:
success: "Two factor authentication successful."
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."

6
config/locales/ru.yml

@ -0,0 +1,6 @@
ru:
devise:
two_factor_authentication:
attempt_failed: "Неверный код."
max_login_attempts_reached: "Доступ заблокирован. Превышено число попыток авторизации"
contact_administrator: "Пожалуйста, свяжитесь с системным администратором."
Loading…
Cancel
Save