bug #32123 [Form] fix translation domain (xabbuh)
This PR was merged into the 3.4 branch.
Discussion
----------
[Form] fix translation domain
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | https://github.com/symfony/symfony/issues/32045#issuecomment-504005348
| License | MIT
| Doc PR |
Commits
-------
74387cf21f
fix translation domain
This commit is contained in:
commit
4c088b6dae
@ -159,7 +159,7 @@ class FileType extends AbstractType
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (null !== $this->translator) {
|
if (null !== $this->translator) {
|
||||||
$message = $this->translator->trans($messageTemplate, $messageParameters);
|
$message = $this->translator->trans($messageTemplate, $messageParameters, 'validators');
|
||||||
} else {
|
} else {
|
||||||
$message = strtr($messageTemplate, $messageParameters);
|
$message = strtr($messageTemplate, $messageParameters);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user