-
Notifications
You must be signed in to change notification settings - Fork 264
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
Missing plural keys wrong locale displayed, does not respect ignore list #310
Comments
If you send a PR with a failing test, I'll look into this one. |
Looks like It shouldn't be detected as a plural key at all. i18n-tasks/lib/i18n/tasks/missing_keys.rb Line 68 in efcc22c
Not sure what's happening here but a failing test would help debug the issue. |
One issue I see is here: i18n-tasks/lib/i18n/tasks/missing_keys.rb Line 69 in efcc22c
This changes the node, that shouldn't happen (we should create a new by calling |
@Gargron Does the commit above fix any issues? |
In |
Oh I see. Well, it's a sensible heuristic to add: if a key has only one child and that child does not have the |
This is a CI run from last night (without your fix yet): https://circleci.com/gh/tootsuite/mastodon/26761
If run with |
Otherwise the root key, which is the locale displayed in the report, is set to the last processed locale Fix glebm#310
Otherwise the root key, which is the locale displayed in the report, is set to the last processed locale Fix #310
This is my mistake. For some reason, a missing plural in "it" shows up as missing in "zh-TW", and before that, missing plurals in "cs" also showed up as "zh-TW". I have no idea why, must be some key getting overwritten somewhere.
Also, I discovered I have a weird case where I have a structure like:
And unfortunately it shows up as missing "one" even though it's not a plural. Maybe when deciding based on only "other" being present, a condition should be that it contains the "count" variable as well?
The text was updated successfully, but these errors were encountered: