[BUGFIX] Update all languages with CLI command 86/57786/2
authorGuido Schmechel <guido.schmechel@brandung.de>
Thu, 2 Aug 2018 21:26:16 +0000 (23:26 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Mon, 3 Sep 2018 10:52:17 +0000 (12:52 +0200)
Now it is possible to pass several Isocodes comma separated
by CLI and to update them.

Releases: master
Resolves: #85694
Change-Id: I1a618d6ed8c3abda650995d5d7d1eb523cff1bc1
Reviewed-on: https://review.typo3.org/57786
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
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>
typo3/sysext/install/Classes/Command/LanguagePackCommand.php

index ef180c3..8d6484d 100644 (file)
@@ -61,9 +61,9 @@ class LanguagePackCommand extends Command
         }
 
         $languagePackService = GeneralUtility::makeInstance(LanguagePackService::class);
-
         try {
-            $isos = $input->getArgument('locales');
+            $localesToUpdate = $input->getArgument('locales');
+            $isos = GeneralUtility::trimExplode(',', $localesToUpdate[0], true);
         } catch (\Exception $e) {
             $isos = [];
         }