Skip to content

Commit

Permalink
Merge pull request #13 from edg3r/add_locales
Browse files Browse the repository at this point in the history
Add ru locales and locales for max_limit_reached view
  • Loading branch information
Houdini committed Apr 16, 2014
2 parents 39deb66 + 2ad13ed commit 93b1a15
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 6 additions & 0 deletions config/locales/ru.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ru:
devise:
two_factor_authentication:
attempt_failed: "Неверный код."
max_login_attempts_reached: "Доступ заблокирован. Превышено число попыток авторизации"
contact_administrator: "Пожалуйста, свяжитесь с системным администратором."

0 comments on commit 93b1a15

Please sign in to comment.