Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate keys in locale files #5084

Merged
merged 2 commits into from
Feb 22, 2023
Merged

Conversation

taitus
Copy link
Member

@taitus taitus commented Feb 21, 2023

Objectives

Remove duplicated keys in :en locales files.

@javierm javierm added this to Reviewing in Consul Democracy Feb 21, 2023
@javierm javierm moved this from Reviewing to Doing in Consul Democracy Feb 21, 2023
@javierm javierm self-assigned this Feb 21, 2023
@javierm javierm changed the title Remove duplicated keys Remove duplicate keys Feb 21, 2023
@taitus taitus moved this from Doing to Reviewing in Consul Democracy Feb 22, 2023
@javierm javierm moved this from Reviewing to Doing in Consul Democracy Feb 22, 2023
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.
To be consistent with the previous commit we update the text that appears
in the administration tables for discussions and proposals. Now instead of
"Proposals" and "Discussions" will appear "Title" which makes more sense
and is more consistent.
Consul Democracy automation moved this from Doing to Testing Feb 22, 2023
@taitus taitus merged commit 0f52180 into master Feb 22, 2023
@taitus taitus deleted the check-translations-keys branch February 22, 2023 15:38
Consul Democracy automation moved this from Testing to Release 2.0.0 Feb 22, 2023
@javierm javierm changed the title Remove duplicate keys Remove duplicate keys in locale files Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants