def field_permission_tag(permissions, status, field)
name = field.is_a?(CustomField) ? field.id.to_s : field
select_tag("permissions[#{name}][#{status.id}]",
- options_for_select([["", ""], ["Read-only", "readonly"], ["Required", "required"]], permissions[status.id][name])
+ options_for_select([["", ""], [l(:label_readonly), "readonly"], [l(:label_required), "required"]], permissions[status.id][name])
)
end
end
<div class="tabs">
<ul>
- <li><%= link_to 'Status transitions', {:action => 'edit', :role_id => @role, :tracker_id => @tracker} %></li>
- <li><%= link_to 'Fields permissions', {:action => 'permissions', :role_id => @role, :tracker_id => @tracker}, :class => 'selected' %></li>
+ <li><%= link_to l(:label_status_transitions), {:action => 'edit', :role_id => @role, :tracker_id => @tracker} %></li>
+ <li><%= link_to l(:label_fields_permissions), {:action => 'permissions', :role_id => @role, :tracker_id => @tracker}, :class => 'selected' %></li>
</ul>
</div>
label_search_for_watchers: Search for watchers to add
label_session_expiration: Session expiration
label_show_closed_projects: View closed projects
+ label_status_transitions: Status transitions
+ label_fields_permissions: Fields permissions
+ label_readonly: Read-only
+ label_required: Required
button_login: Login
button_submit: Submit
label_completed_versions: Versions passées
label_session_expiration: Expiration des sessions
label_show_closed_projects: Voir les projets fermés
+ label_status_transitions: Changements de statut
+ label_fields_permissions: Permissions sur les champs
+ label_readonly: Lecture
+ label_required: Obligatoire
button_login: Connexion
button_submit: Soumettre