From: Tomas Sedovic <tsedo...@redhat.com> Accidentally, the text for the "Users" item from the main navigation wasn't being loaded from the i18n dictionary.
This adds the text to the dictionary and hooks the loading up. --- src/app/views/layouts/_header.haml | 2 +- src/config/locales/en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/app/views/layouts/_header.haml b/src/app/views/layouts/_header.haml index 0ea60bc..916a162 100644 --- a/src/app/views/layouts/_header.haml +++ b/src/app/views/layouts/_header.haml @@ -1,7 +1,7 @@ - menu = [ { :text => t(:dashboard), :controller => "dashboard" }, | { :text => t(:instances), :controller => "instance" }, | { :text => t(:templates), :controller => "image", :action => "show" }, | - ({ :text => "Users", :controller => "permissions", :action => "list" } if @current_user && has_view_perms?(BasePermissionObject.general_permission_scope)), | + ({ :text => t(:users), :controller => "permissions", :action => "list" } if @current_user && has_view_perms?(BasePermissionObject.general_permission_scope)), | { :text => t(:settings), :controller => "settings" }, | ].find_all {|item| item != nil} | .header_logo diff --git a/src/config/locales/en.yml b/src/config/locales/en.yml index 46d0c46..311f7a3 100644 --- a/src/config/locales/en.yml +++ b/src/config/locales/en.yml @@ -1,6 +1,7 @@ en: dashboard: Dashboard instances: Instances + users: Users templates: Templates settings: Settings login: Log in -- 1.7.2.2 _______________________________________________ deltacloud-devel mailing list deltacloud-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/deltacloud-devel