-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[2.7][Form][choice] add doc about the new option: choice_translation_domain #5134
Comments
It's |
This has to be documented in the form type reference using the same format as the other options and should also have a |
Is there a way to impact the whole entity in a single call?
|
On what form field types is the Could some clarify? Edit: Edit 2: |
@aitboudad Can you confirm that what @ricohumme describes is the intended behaviour? |
By the way, there is an open pull request: see #5614 |
Sorry I don't have much time these days ^^ below how it work:
for the |
@ricohumme not sure if I understood the |
Sure!
The output on the screen renders the widgets without translating the contents of the widgets, however the label also shows rma_form.label.purchaseDate (not translated) When using the following code:
The output on the screen renders the widgets and translates the content: So the placeholders are correct, but also the numbers are translated. The label widget label is correctly translated. |
@ricohumme your example work as expected :), as I already mentioned above the |
@aitboudad that is true, you did. But do you agree that the |
@ricohumme yes, see symfony/symfony#15301 |
@ricohumme @aitboudad What about the label not being translated? Is that intended too? |
@xabbuh when {{ translation_domain is sameas(false) ? label : label|trans({}, translation_domain) }} |
@aitboudad Yes, but was that really intended? |
@xabbuh not sure, anyway not related to this issue ! |
Fixed by #5906 |
symfony/symfony#13651
choice_translation_domain (bool | null | string)
The text was updated successfully, but these errors were encountered: