-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[TwigBridge] form button title attr will now trans for button without text #34436
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
[TwigBridge] form button title attr will now trans for button without text #34436
Conversation
…n if its label is null or false
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.
Nice job Stephen! I just tested this in a real project - no missing pieces - it works great :).
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.
why not as a bug fix?
src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
Outdated
Show resolved
Hide resolved
No good reason, only inexperience with contributing. Should I convert the PR to a bug fix and move the commit to a branch off 3.4? (I'll play around locally to figure out how to do that...) |
Recreated as bugfix in 3.4 (PR #35193). Same changes as above, no issues found. Apologies if this is the wrong way to change the PR type; if there is a better way, I'd appreciate feedback :-) |
…ed even if its label = null or false (stephen-lewis) This PR was squashed before being merged into the 3.4 branch (closes #35193). Discussion ---------- [TwigBridge] button_widget now has its title attr translated even if its label = null or false | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #34330 | License | MIT | Doc PR | TODO Duplicate of #34436 but changed to bugfix and applied to 3.4. Buttons with null or false 'label' options will now have their 'title' attribute translated against the current translation domain. Commits ------- 2a5d9cb [TwigBridge] button_widget now has its title attr translated even if its label = null or false
Buttons with null or false 'label' options will now have their 'title' attribute translated against the current translation domain.