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

Fail generate_strings_file_for_glotpress when it finds reused keys #446

Open
mokagio opened this issue Jan 30, 2023 · 0 comments
Open

Fail generate_strings_file_for_glotpress when it finds reused keys #446

mokagio opened this issue Jan 30, 2023 · 0 comments

Comments

@mokagio
Copy link
Contributor

mokagio commented Jan 30, 2023

As discussed in wordpress-mobile/WordPress-iOS#19651, genstrings does not throw an error upon reused keys, only a warning:

image

That is not acceptable for us, because it leads to these easy to make errors going ignored and possibly making it past the code freeze stage.

I think we should be able to run the genstring output through RegEx that can match strings with the format Key "..." used with multiple values. Value "..." kept. Value "..." ignored., collect all the matches, and return them as errors.

Note: I'm aware "..." is not valid, or useful, for the RegEx, just using it to give an idea of the shape of the text to look for.

See also wordpress-mobile/WordPress-iOS#20030.

mokagio added a commit to wordpress-mobile/WordPress-iOS that referenced this issue Aug 21, 2023
This issue was revealed by a strings generation _warning_:

[12:54:11]: ▸ Key "mySite.domain.focus.card.title" used with multiple values. Value "News" kept. Value "Reclaim your Google Domains" ignored.

Unfortunately, we don't have the tooling at the moment to translate this
warning into an error.
See wordpress-mobile/release-toolkit#446
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant