Skip to content

Commit

Permalink
Revert "[BUGFIX] Update all languages with CLI command"
Browse files Browse the repository at this point in the history
This change was not necessary since multiple values can be passed in
separated by spaces instead of commas just like any other Symfony command.

Example:

    bin/typo3 language:update de ja

This reverts commit f612f2e.

Change-Id: Ie87d8245082613b4185b859f635bf712094ca914
Resolves: #85694
Releases: master
Reviewed-on: https://review.typo3.org/58137
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
  • Loading branch information
mbrodala authored and maddy2101 committed Sep 3, 2018
1 parent 3676fc9 commit 97364f0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions typo3/sysext/install/Classes/Command/LanguagePackCommand.php
Expand Up @@ -39,7 +39,8 @@ protected function configure()
$this->setDescription('Update the language files of all activated extensions')
->addArgument(
'locales',
InputArgument::IS_ARRAY | InputArgument::OPTIONAL
InputArgument::IS_ARRAY | InputArgument::OPTIONAL,
'Provide iso codes separated by space to update only selected language packs. Example `bin/typo3 language:update de ja`.'
);
}

Expand All @@ -61,9 +62,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

$languagePackService = GeneralUtility::makeInstance(LanguagePackService::class);

try {
$localesToUpdate = $input->getArgument('locales');
$isos = GeneralUtility::trimExplode(',', $localesToUpdate[0], true);
$isos = $input->getArgument('locales');
} catch (\Exception $e) {
$isos = [];
}
Expand Down

0 comments on commit 97364f0

Please sign in to comment.