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>

View File

@@ -339,6 +339,10 @@ en:
no_progress_bars: "There are no progress bars"
new_progress_bar: "Create new progress bar"
primary: "Primary progress bar"
table_id: "ID"
table_kind: "Type"
table_title: "Title"
table_percentage: "Current progress"
new:
creating: "Create progress bar"
edit:

View File

@@ -339,6 +339,10 @@ es:
no_progress_bars: "No hay barras de progreso"
new_progress_bar: "Crear nueva barra de progreso"
primary: "Barra de progreso principal"
table_id: "ID"
table_kind: "Tipo"
table_title: "Título"
table_percentage: "Progreso"
new:
creating: "Crear barra de progreso"
edit: