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:
Christian Flothmann 2019-06-21 11:53:38 +02:00
commit 4c088b6dae
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class FileType extends AbstractType
}
if (null !== $this->translator) {
$message = $this->translator->trans($messageTemplate, $messageParameters);
$message = $this->translator->trans($messageTemplate, $messageParameters, 'validators');
} else {
$message = strtr($messageTemplate, $messageParameters);
}