Use I18n keys instead of human_attribute_name

Even if it means duplicating the translations in many cases, it's
consistent with the rest of the application.
This commit is contained in:
Javi Martín
2019-01-08 20:44:00 +01:00
committed by decabeza
parent 7c0fb96b02
commit 96454a41f0
3 changed files with 12 additions and 4 deletions

View File

@@ -11,10 +11,10 @@
<table>
<thead>
<tr>
<th><%= ProgressBar.human_attribute_name("id") %></th>
<th><%= ProgressBar.human_attribute_name("kind") %></th>
<th><%= ProgressBar.human_attribute_name("title") %></th>
<th class="text-center"><%= ProgressBar.human_attribute_name("percentage") %></th>
<th><%= t("admin.progress_bars.index.table_id") %></th>
<th><%= t("admin.progress_bars.index.table_kind") %></th>
<th><%= t("admin.progress_bars.index.table_title") %></th>
<th class="text-center"><%= t("admin.progress_bars.index.table_percentage") %></th>
<th><%= t("admin.actions.actions") %></th>
</tr>
</thead>