Skip to content

Issue #3615336: skip missing locale projects (Shrey Narayan, NextBrick) - #1

Open
NextbrickInc wants to merge 1 commit into
mainfrom
fix/3615336-locale-source-missing-project
Open

Issue #3615336: skip missing locale projects (Shrey Narayan, NextBrick)#1
NextbrickInc wants to merge 1 commit into
mainfrom
fix/3615336-locale-source-missing-project

Conversation

@NextbrickInc

@NextbrickInc NextbrickInc commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fixes the TypeError in LocaleSource::sourceBuild() when a stale project name is still present in translation status data but no longer returned by LocaleProjectRepository (for example after a module is uninstalled).
  • loadSources() now skips untracked projects, loadSource() returns NULL, and locale batch/cron callers continue instead of fataling.
  • Adds unit coverage for missing and tracked projects.

Author: Shrey Narayan, NextBrick
Email: employeenextbrick@gmail.com

Upstream issue: https://www.drupal.org/project/drupal/issues/3615336

Test plan

  • Run LocaleSourceTest (core/modules/locale/tests/src/Unit/LocaleSourceTest.php).
  • Uninstall a module that previously had translation status data, then run cron / translation status check and confirm there is no TypeError.

Stale project names in translation status data caused a TypeError when sourceBuild() received NULL. Skip untracked projects and return NULL from loadSource() so cron and batch jobs continue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant