- Issue created by @macdev_drupal
- Status changed to Postponed: needs info
5 months ago 2:50pm 20 June 2024 locale:check
entirely in Drush and this bug may not be fix-able in Drupal Core. I think you may have to report this to Drush.- Status changed to Active
5 months ago 11:51am 21 June 2024 - π©πͺGermany macdev_drupal Wiesbaden
Drush hands over to the local module. So I think this should be addressed there.
Just checked
web/core/modules/locale/locale.fetch.inc
web/core/modules/locale/locale.batch.inc
the methods there are just triggered from drush locale:check and the business logic is in those methods.
Maybe there could be a fall back, before deleting / renaming .po files locally. - π³πΏNew Zealand quietone
Fixes are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies. Also, 10.2 is in security mode now.
- π©πͺGermany alxn
I can confirm that drush locale:check deletes module translation files in the translations folder. Subsequently running drush locale:update then leads to the error [error] TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool given in fgets() (line 248 of /var/www/html/docroot/core/lib/Drupal/Component/Gettext/PoStreamReader.php), apparently because a translation file could not be read.
Drupal version : 10.2.7
PHP version : 8.1.27
Drush version : 12.5.3.0