Skip to content

[Form] Improve invalid messages for form types #30931

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

Merged
merged 1 commit into from
Jul 10, 2020

Conversation

webmozart
Copy link
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets #27142, #5946
License MIT
Doc PR TODO

This merge request is a continuation of #27142.

Changes done here:

  • rebased on master
  • made the error messages friendlier

Copy link
Contributor

@HeahDude HeahDude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some CS changes looks wrong. Otherwise looks good, thanks!

Copy link
Contributor

@HeahDude HeahDude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks @hiddewie and @webmozart for finishing it!

@webmozart
Copy link
Contributor Author

The build fails, but I'm unable to reproduce this locally :-\ Can anyone help me there?

@fabpot
Copy link
Member

fabpot commented Jul 8, 2019

@xabbuh Do you a plan to finish this PR?

@fabpot
Copy link
Member

fabpot commented Dec 3, 2019

@xabbuh Friendly ping :)

@xabbuh xabbuh force-pushed the customized-invalid-messages branch 7 times, most recently from d693fe8 to 200008f Compare July 8, 2020 16:34
@xabbuh xabbuh force-pushed the customized-invalid-messages branch from 200008f to d2f0e4f Compare July 9, 2020 08:29
@ogizanagi
Copy link
Contributor

Thank you @xabbuh for taking care of this 👍

@xabbuh xabbuh force-pushed the customized-invalid-messages branch 2 times, most recently from bfed611 to 0137ee1 Compare July 10, 2020 08:37
@xabbuh xabbuh force-pushed the customized-invalid-messages branch from 0137ee1 to 8728927 Compare July 10, 2020 09:36
@xabbuh
Copy link
Member

xabbuh commented Jul 10, 2020

Thank you Bernhard.

@xabbuh
Copy link
Member

xabbuh commented Jul 10, 2020

And thank you @hiddewie for doing the initial work!

@xabbuh xabbuh merged commit dfc3267 into symfony:master Jul 10, 2020
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.2 Oct 5, 2020
@fabpot fabpot mentioned this pull request Oct 5, 2020
fabpot added a commit that referenced this pull request Oct 20, 2020
This PR was squashed before being merged into the 5.x branch.

Discussion
----------

[Form] Add missing invalid_message translations

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Some invalid messages were missed in #30931 (probably because of the old age of that PR). This PR adds all missing translation keys and a missing invalid message for the new WeekType.

I've also added the dutch translations (might be up for improvement, but it's a start). We should probably initiate another community initiative to translate these new messages (only a couple languages include the new invalid messages yet).

Commits
-------

86c78b6 Added dutch translations for new invalid messages
301f0aa Added missing invalid messages
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.