Remove duplicated keys
In the images.yml file we have a duplicate key with the same translation, so we can remove it. In the admin.yml file we have a duplicate key with different translation. This translation is only used in 2 places in the application: - In the administration table for collaborative legislation proposal index. - In the <% provide :title do %> of the same page. Although it is true that now the second translation (Title) is applied in both cases, I think it makes more sense to use the first one (Proposals) in the page title because it seems to make more sense and be more useful to use "Proposals" instead of “Title”. In order not to modify the behavior in the translation shown in the administration table, we add human_attribute_name to obtain the expected result.
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-center"><%= t("admin.legislation.proposals.index.id") %></th>
|
<th class="text-center"><%= t("admin.legislation.proposals.index.id") %></th>
|
||||||
<th><%= t("admin.legislation.proposals.index.title") %></th>
|
<th><%= Legislation::Proposal.human_attribute_name(:title) %></th>
|
||||||
<th class="text-center"><%= t("admin.legislation.proposals.index.supports") %></th>
|
<th class="text-center"><%= t("admin.legislation.proposals.index.supports") %></th>
|
||||||
<th><%= t("admin.proposals.index.selected") %></th>
|
<th><%= t("admin.proposals.index.selected") %></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -619,7 +619,6 @@ en:
|
|||||||
title: Proposals
|
title: Proposals
|
||||||
back: Back
|
back: Back
|
||||||
id: Id
|
id: Id
|
||||||
title: Title
|
|
||||||
supports: Total supports
|
supports: Total supports
|
||||||
form:
|
form:
|
||||||
custom_categories: Categories
|
custom_categories: Categories
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ en:
|
|||||||
delete_button: Remove image
|
delete_button: Remove image
|
||||||
note: "You can upload one image of following content types: %{accepted_content_types}, up to %{max_file_size} MB."
|
note: "You can upload one image of following content types: %{accepted_content_types}, up to %{max_file_size} MB."
|
||||||
add_new_image: Add image
|
add_new_image: Add image
|
||||||
title_placeholder: Add a descriptive title for the image
|
|
||||||
actions:
|
actions:
|
||||||
destroy:
|
destroy:
|
||||||
notice: Image was deleted successfully.
|
notice: Image was deleted successfully.
|
||||||
|
|||||||
Reference in New Issue
Block a user