<% if tr8n_current_language.rule_classes.size > 0 %> <% @dependant_tokens = @translation_key.language_rules_dependant_tokens %> <% td_width = (95/(tr8n_current_language.rule_classes.size)) %> <% tr8n_current_language.rule_classes.each do |rule_class| %> <% end %> <% @dependant_tokens.each do |token| %> <% tr8n_current_language.rule_classes.each do |rule_class| %> <% end %> <% end %>
<%=trla("tokens", "Rules table header")%> <%=trla(rule_class.dependency_label, "Rules table header") %>
<%=token.permutable_name %> <% if rule_class.dependant?(token) %> <%=check_box_tag("dependencies[#{token.name}][#{rule_class.dependency}]", "true", false, :style => "width:20px;")%> <% else %> n/a <% end %>
<% else %> <%=trla("The language does not have any rules defined and no rules permutations can be generated. Please contact the language manager to define language rules.")%> <% end %>