Skip to content

Commit 4c088b6

Browse files
committed
bug symfony#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 | symfony#32045 (comment) | License | MIT | Doc PR | Commits ------- 74387cf fix translation domain
2 parents 370682c + 74387cf commit 4c088b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Extension/Core/Type/FileType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private function getFileUploadError($errorCode)
159159
}
160160

161161
if (null !== $this->translator) {
162-
$message = $this->translator->trans($messageTemplate, $messageParameters);
162+
$message = $this->translator->trans($messageTemplate, $messageParameters, 'validators');
163163
} else {
164164
$message = strtr($messageTemplate, $messageParameters);
165165
}

0 commit comments

Comments
 (0)