-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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
Conversation
src/Symfony/Component/Form/Extension/Core/Type/TimezoneType.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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!
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Form/Tests/Extension/Core/Type/FormTypeTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/HttpKernel/EventListener/LocaleListener.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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!
2d027fd
to
fa4228b
Compare
The build fails, but I'm unable to reproduce this locally :-\ Can anyone help me there? |
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Outdated
Show resolved
Hide resolved
@xabbuh Do you a plan to finish this PR? |
@xabbuh Friendly ping :) |
d693fe8
to
200008f
Compare
200008f
to
d2f0e4f
Compare
src/Symfony/Component/Form/Resources/translations/validators.en.xlf
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Form/Resources/translations/validators.en.xlf
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Form/Resources/translations/validators.en.xlf
Outdated
Show resolved
Hide resolved
Thank you @xabbuh for taking care of this 👍 |
bfed611
to
0137ee1
Compare
0137ee1
to
8728927
Compare
Thank you Bernhard. |
And thank you @hiddewie for doing the initial work! |
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
This merge request is a continuation of #27142.
Changes done here: