diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-10-24 15:24:35 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-10-24 15:24:35 +0000 |
commit | 6c54b0ba3b3fc15754d0e200758e5f615e92b4ee (patch) | |
tree | c5c4661a6d7f6f29f1ddfb04ffd785c1ecf3009a /app/views/roles | |
parent | bdbc7b337f0b347883a763a65627b1d28fc92c7f (diff) | |
download | redmine-6c54b0ba3b3fc15754d0e200758e5f615e92b4ee.tar.gz redmine-6c54b0ba3b3fc15754d0e200758e5f615e92b4ee.zip |
Makes permission screens localized (#2070).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1943 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/roles')
-rw-r--r-- | app/views/roles/_form.rhtml | 4 | ||||
-rw-r--r-- | app/views/roles/report.rhtml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/roles/_form.rhtml b/app/views/roles/_form.rhtml index 4aad45471..a167907e8 100644 --- a/app/views/roles/_form.rhtml +++ b/app/views/roles/_form.rhtml @@ -15,11 +15,11 @@ <div class="box" id="permissions"> <% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %> <% perms_by_module.keys.sort.each do |mod| %> - <fieldset><legend><%= mod.blank? ? l(:label_project) : mod.humanize %></legend> + <fieldset><legend><%= mod.blank? ? l(:label_project) : l_or_humanize(mod, :prefix => 'project_module_') %></legend> <% perms_by_module[mod].each do |permission| %> <label class="floating"> <%= check_box_tag 'role[permissions][]', permission.name, (@role.permissions.include? permission.name) %> - <%= permission.name.to_s.humanize %> + <%= l_or_humanize(permission.name, :prefix => 'permission_') %> </label> <% end %> </fieldset> diff --git a/app/views/roles/report.rhtml b/app/views/roles/report.rhtml index 8e254379e..f5ebc8845 100644 --- a/app/views/roles/report.rhtml +++ b/app/views/roles/report.rhtml @@ -19,14 +19,14 @@ <% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %> <% perms_by_module.keys.sort.each do |mod| %> <% unless mod.blank? %> - <tr><%= content_tag('th', mod.humanize, :colspan => (@roles.size + 1), :align => 'left') %></tr> + <tr><%= content_tag('th', l_or_humanize(mod, :prefix => 'project_module_'), :colspan => (@roles.size + 1), :align => 'left') %></tr> <% end %> <% perms_by_module[mod].each do |permission| %> <tr class="<%= cycle('odd', 'even') %> permission-<%= permission.name %>"> <td> <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('.permission-#{permission.name} input')", :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> - <%= permission.name.to_s.humanize %> + <%= l_or_humanize(permission.name, :prefix => 'permission_') %> </td> <% @roles.each do |role| %> <td align="center"> |