Bug #95700

CLI command language:update fails due to packages without translation packs

Added by Daniel Haupt 7 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
CLI
Target version:
-
Start date:
2021-10-19
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Example execution:

$ typo3 language:update -v
Updating language packs of all activated extensions for locale(s) "de" 
Updated pack for language "de" for extension "adminpanel" 
[...]
Fetching pack for language "de" for extension "recaptcha" failed
[...]
Failed to execute command vendor/bin/typo3 language:update -v: exit status 1

In this case, the extension recaptcha does not provide translation packs at all. Ideally, it should not be attempted to download language packs of this extension.

Suggenstions:
1. Fetch translation packs only if an extension provides those (e.g. check for `.crowdin.yaml` in extension directory or introduce new extension config flag).
2. Do not fail in command typo3 language:update if package download results in 404.

Our current workaround for CI/CD usage:

$ typo3 language:update --no-progress &> /dev/null || true


Related issues

Related to TYPO3 Core - Bug #91988: language:update command does not output anything when not called in verbose modeClosed2020-08-12

Actions
#1

Updated by Daniel Haupt 7 months ago

Addition:
I am aware of the command option --skip-extension, but with numerous extensions it could get messy. It would be better to optimize the general behavior, also in the install tool.

#2

Updated by Oliver Hader 7 months ago

Translation server should provide a list of available language packs per extension. The problematic case here is the exit status.

#3

Updated by Oliver Hader 7 months ago

  • Status changed from New to Accepted
#4

Updated by Mathias Brodala 6 months ago

  • Related to Bug #91988: language:update command does not output anything when not called in verbose mode added
#5

Updated by Mathias Brodala 6 months ago

  • Is Regression set to Yes
#6

Updated by Mathias Brodala 6 months ago

This has been added as one of many changes with #91988 and is basically a regression.

#7

Updated by Gerrit Code Review 6 months ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72274

#8

Updated by Gerrit Code Review 6 months ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72274

#9

Updated by Gerrit Code Review 6 months ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72274

#10

Updated by Gerrit Code Review 6 months ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72274

#11

Updated by Gerrit Code Review 6 months ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72274

#12

Updated by Gerrit Code Review 6 months ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72274

#13

Updated by Gerrit Code Review 6 months ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72274

#14

Updated by Gerrit Code Review 6 months ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72274

#15

Updated by Gerrit Code Review 6 months ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72274

#16

Updated by Gerrit Code Review 6 months ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72274

#17

Updated by Gerrit Code Review 6 months ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72309

#18

Updated by Anonymous 6 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF