From a95babec22ce59f7a9a6458ff624398e25abab2a Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Wed, 17 Sep 2014 14:40:31 +0300 Subject: [PATCH] Add translations for management-related strings --- app/views/layouts/management.html.slim | 4 ++-- app/views/management/users/_user.html.slim | 2 +- config/locales/management.bg.yml | 4 +++- config/locales/management.en.yml | 4 +++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app/views/layouts/management.html.slim b/app/views/layouts/management.html.slim index 9aa5719..99d5d8c 100644 --- a/app/views/layouts/management.html.slim +++ b/app/views/layouts/management.html.slim @@ -21,9 +21,9 @@ html .navbar-collapse.collapse ul.nav.navbar-nav 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'}" - = link_to 'Users', management_users_path + = link_to User.model_name.human(count: 2), management_users_path div.container == yield = javascript_include_tag "management/application" diff --git a/app/views/management/users/_user.html.slim b/app/views/management/users/_user.html.slim index 1c023b6..28331da 100644 --- a/app/views/management/users/_user.html.slim +++ b/app/views/management/users/_user.html.slim @@ -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' td .actions - = link_to management_user_path(user), title: t(:edit) + = link_to management_user_path(user), title: t(:view) = glyph(:share) = link_to edit_management_user_path(user), title: t(:edit) = glyph(:edit) diff --git a/config/locales/management.bg.yml b/config/locales/management.bg.yml index b315231..47fdc21 100644 --- a/config/locales/management.bg.yml +++ b/config/locales/management.bg.yml @@ -1,2 +1,4 @@ bg: - are_you_sure: Сигурен ли си? \ No newline at end of file + are_you_sure: Сигурен ли си? + view: Преглед + home: Начало \ No newline at end of file diff --git a/config/locales/management.en.yml b/config/locales/management.en.yml index 31a39c9..3da14eb 100644 --- a/config/locales/management.en.yml +++ b/config/locales/management.en.yml @@ -1,2 +1,4 @@ en: - are_you_sure: Are you sure? \ No newline at end of file + are_you_sure: Are you sure? + view: View + home: Home \ No newline at end of file