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:
@@ -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>
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user