summaryrefslogtreecommitdiff
path: root/vendor/symfony/translation/DataCollectorTranslator.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/translation/DataCollectorTranslator.php')
-rw-r--r--vendor/symfony/translation/DataCollectorTranslator.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/symfony/translation/DataCollectorTranslator.php b/vendor/symfony/translation/DataCollectorTranslator.php
index 68200a7f45..0284b77e9b 100644
--- a/vendor/symfony/translation/DataCollectorTranslator.php
+++ b/vendor/symfony/translation/DataCollectorTranslator.php
@@ -68,10 +68,10 @@ class DataCollectorTranslator implements LegacyTranslatorInterface, TranslatorIn
{
if ($this->translator instanceof TranslatorInterface) {
$trans = $this->translator->trans($id, ['%count%' => $number] + $parameters, $domain, $locale);
+ } else {
+ $trans = $this->translator->transChoice($id, $number, $parameters, $domain, $locale);
}
- $trans = $this->translator->transChoice($id, $number, $parameters, $domain, $locale);
-
$this->collectMessage($locale, $domain, $id, $trans, ['%count%' => $number] + $parameters);
return $trans;