| @@ 44-48 (lines=5) @@ | ||
| 41 | { |
|
| 42 | $configName = $input->getArgument('configuration'); |
|
| 43 | $config = $this->getContainer()->get('php_translation.configuration_manager')->getConfiguration($configName); |
|
| 44 | if (null !== $inputLocale = $input->getArgument('locale', null)) { |
|
| 45 | $locales = [$inputLocale]; |
|
| 46 | } else { |
|
| 47 | $locales = $this->getContainer()->getParameter('php_translation.locales'); |
|
| 48 | } |
|
| 49 | ||
| 50 | $transPaths = array_merge($config['external_translations_dirs'], [$config['output_dir']]); |
|
| 51 | $catalogueManager = $this->getContainer()->get('php_translation.catalogue_manager'); |
|
| @@ 42-46 (lines=5) @@ | ||
| 39 | $config = $this->getContainer()->get('php_translation.configuration_manager')->getConfiguration($input->getArgument('configuration')); |
|
| 40 | $importer = $this->getContainer()->get('php_translation.importer'); |
|
| 41 | ||
| 42 | if ($inputLocale = $input->getArgument('locale')) { |
|
| 43 | $locales = [$inputLocale]; |
|
| 44 | } else { |
|
| 45 | $locales = $this->getContainer()->getParameter('php_translation.locales'); |
|
| 46 | } |
|
| 47 | ||
| 48 | $transPaths = array_merge($config['external_translations_dirs'], [$config['output_dir']]); |
|
| 49 | $catalogues = $this->getContainer()->get('php_translation.catalogue_fetcher')->getCatalogues($locales, $transPaths); |
|