Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Form] Avoid button label translation when it's set to false#25249
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Improve my previous contribution to hide button label when it's set to false (#24148) because a missing translation error appear
nicolas-grekas commentedDec 1, 2017
your previous contrib was for 2.7, you submitted against master, but described as 4.0 |
TeLiXj commentedDec 1, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
It was on 2.7 branch but fabpot merged it into 3.4/4.0 branch. Now it's the same, only for 3.4/4.0 branches |
xabbuh commentedDec 7, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Isn't the real issue that we try to display |
TeLiXj commentedDec 8, 2017
@xabbuh what do you mean? |
xabbuh commentedDec 8, 2017
<buttontype="{{type|default('button') }}" {{block('button_attributes') }}>{{translation_domainissame as(false)?label:label|trans({},translation_domain) }}</button> Here we always display the |
TeLiXj commentedDec 8, 2017
Print false is same as print nothing because this I only check for label false one time. |
nicolas-grekas left a comment
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.
(for 3.4)
fabpot commentedJan 17, 2018
Thank you@TeLiXj. |
…se (TeLiXj)This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes#25249).Discussion----------[Form] Avoid button label translation when it's set to false| Q | A| ------------- | ---| Branch? | 4.0| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | no| Fixed tickets || License | MIT| Doc PR |Improve my previous contribution to hide button label when it's set to false (#24148) because a missing translation error appearsCommits-------368edd8 Avoid button label translation when it's set to false
Improve my previous contribution to hide button label when it's set to false (#24148) because a missing translation error appears