permission_localization.patch

Daniel Vandersluis, 2008-10-22 21:31

Download (616 Bytes)

View differences:

app/views/roles/_form.rhtml (working copy)
19 19
    <% perms_by_module[mod].each do |permission| %>
20 20
        <label class="floating">
21 21
        <%= check_box_tag 'role[permissions][]', permission.name, (@role.permissions.include? permission.name) %>
22
        <%= permission.name.to_s.humanize %>
22
        <%= (l_has_string?(permission.name) ? l(permission.name) : permission.name.to_s.humanize) %>
23 23
        </label>
24 24
    <% end %>
25 25
    </fieldset>