diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php index 3e1b16436f70e..88f714e05d779 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/TranslationUpdateCommand.php @@ -196,10 +196,10 @@ protected function execute(InputInterface $input, OutputInterface $output) $bundleTransPath = $path; } } - - if ($bundleTransPath) { - $writer->writeTranslations($operation->getResult(), $input->getOption('output-format'), array('path' => $bundleTransPath, 'default_locale' => $this->getContainer()->getParameter('kernel.default_locale'))); + if (!$bundleTransPath) { + $bundleTransPath = end($transPaths).'translations'; } + $writer->writeTranslations($operation->getResult(), $input->getOption('output-format'), array('path' => $bundleTransPath, 'default_locale' => $this->getContainer()->getParameter('kernel.default_locale'))); if (true === $input->getOption('dump-messages')) { $resultMessage .= ' and translation files were updated.';