[Form] Avoid button label translation when it's set to false#25249
[Form] Avoid button label translation when it's set to false#25249TeLiXj wants to merge 1 commit intosymfony:masterfrom TeLiXj:patch-3
Conversation
Improve my previous contribution to hide button label when it's set to false (#24148) because a missing translation error appear
|
your previous contrib was for 2.7, you submitted against master, but described as 4.0 |
|
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 |
|
Isn't the real issue that we try to display |
|
@xabbuh what do you mean? |
<button type="{{ type|default('button') }}" {{ block('button_attributes') }}>{{ translation_domain is same as(false) ? label : label|trans({}, translation_domain) }}</button>Here we always display the |
|
Print false is same as print nothing because this I only check for label false one time. |
|
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 appears Commits ------- 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