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

en locale errors.template.header wrongly reported as having broken data #1028

Open
digitalfrost opened this issue Aug 31, 2022 · 3 comments
Open

Comments

@digitalfrost
Copy link
Collaborator

thor locales:test en

wrongly reports that the key errors.template.header has broken data.

The data for the keys:

  • looks fine
  • is en.yml so should be the reference version and not broken
  • is the same as in en-GB which if tested does not report the keys as having broken data
@digitalfrost
Copy link
Collaborator Author

      header:
        one: 1 error prohibited this %{model} from being saved
        other: "%{count} errors prohibited this %{model} from being saved"

If %{model} is deleted from the two lines the keys are not reported as being broken

@digitalfrost
Copy link
Collaborator Author

I am not sure this key is still in rails.
I can't seem to find it via grep

@jlduran
Copy link
Contributor

jlduran commented Jun 6, 2023

It still exists (somewhat):
https://github.com/rails/rails/blob/791f109d97a38f8b9fe8a8c3d6d0a7acd70f1edb/railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb.tt#L4

Fixed in #1087.

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

2 participants