Use underscore versions of model names for translation keys.

This commit is contained in:
Andy Allan 2018-03-14 12:12:24 +08:00
parent 0737c4f169
commit 36970bcf50
4 changed files with 8 additions and 8 deletions

View file

@ -25,7 +25,7 @@
<% Report.categories_for(@report.issue.reportable).each do |c| %>
<li>
<%= radio_button :report, :category, c %>
<%= label_tag "report_category_#{c}", t("reports.categories.#{@report.issue.reportable.class.name}.#{c}") %> <br/>
<%= label_tag "report_category_#{c}", t("reports.categories.#{@report.issue.reportable.class.name.underscore}.#{c}") %> <br/>
</li>
<% end %>
</ul>