Add translations for management-related strings

This commit is contained in:
Petko Bordjukov 2014-09-17 14:40:31 +03:00
parent 96ce602e5d
commit a95babec22
4 changed files with 9 additions and 5 deletions

View File

@ -21,9 +21,9 @@ html
.navbar-collapse.collapse .navbar-collapse.collapse
ul.nav.navbar-nav ul.nav.navbar-nav
li class="#{'active' if controller_name == 'home'}" li class="#{'active' if controller_name == 'home'}"
= link_to 'Home', management_path = link_to t(:home), management_path
li class="#{'active' if controller_name == 'users'}" li class="#{'active' if controller_name == 'users'}"
= link_to 'Users', management_users_path = link_to User.model_name.human(count: 2), management_users_path
div.container div.container
== yield == yield
= javascript_include_tag "management/application" = javascript_include_tag "management/application"

View File

@ -11,7 +11,7 @@ tr id="user-#{user.id}"
= link_to glyph(:unchecked), toggle_admin_management_user_path(user), remote: true, method: :post, data: {confirm: t(:are_you_sure)}, class: 'unchecked' = link_to glyph(:unchecked), toggle_admin_management_user_path(user), remote: true, method: :post, data: {confirm: t(:are_you_sure)}, class: 'unchecked'
td td
.actions .actions
= link_to management_user_path(user), title: t(:edit) = link_to management_user_path(user), title: t(:view)
= glyph(:share) = glyph(:share)
= link_to edit_management_user_path(user), title: t(:edit) = link_to edit_management_user_path(user), title: t(:edit)
= glyph(:edit) = glyph(:edit)

View File

@ -1,2 +1,4 @@
bg: bg:
are_you_sure: Сигурен ли си? are_you_sure: Сигурен ли си?
view: Преглед
home: Начало

View File

@ -1,2 +1,4 @@
en: en:
are_you_sure: Are you sure? are_you_sure: Are you sure?
view: View
home: Home