Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Conversation

stephen-lewis
Copy link
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #34330
License MIT
Doc PR TODO

Buttons with null or false 'label' options will now have their 'title' attribute translated against the current translation domain.

Copy link

@bykclk bykclk left a 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 :).

Copy link
Member

@nicolas-grekas nicolas-grekas left a 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?

@stephen-lewis
Copy link
Contributor Author

stephen-lewis commented Dec 17, 2019

why not as a bug fix?

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...)

@stephen-lewis
Copy link
Contributor Author

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 :-)

@stephen-lewis stephen-lewis deleted the feature/button_title_not_trans_when_label_null branch January 3, 2020 12:04
fabpot added a commit that referenced this pull request Jan 7, 2020
…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
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.1 May 4, 2020
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.

[Twig/Forms] not possible to set title for button without text
5 participants