Problem/Motivation

When using the option, the entities translations labels are not saved.

Proposed resolution

Modify the batch operation to resave all the entity translations.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

unstatu created an issue. See original summary.

unstatu’s picture

Version: 8.x-3.x-dev » 8.x-3.0-beta4

unstatu’s picture

Just noticed that the error was in 8.x-3.0-beta4. Not sure if it's already fixed in the dev branch. Will check.

Anyway, for anyone interested, I have created a MR that will work for beta4: https://git.drupalcode.org/project/auto_entitylabel/-/merge_requests/8

unstatu’s picture

Version: 8.x-3.0-beta4 » 8.x-3.x-dev
Status: Active » Needs review

I have checked that the bug persists on the version 3. I have updated the MR for this version.

anybody’s picture

anybody’s picture

Status: Needs review » Needs work
dqd’s picture

Yaiks! I missed that one completely. Thanks for the wake up call @anybody - What do we need to move on?

anybody’s picture

@dqd thanks, see comment!

liam morland made their first commit to this issue’s fork.

liam morland’s picture

Status: Needs work » Needs review

Issued raised by comments addressed.

There is one failure on phpunit (next minor). This not caused by the change in this issue.

Has any version of this worked for people? When I have tried it, it does save all the translations but the generated values are all in the site's default language. This may be because the tokens we're using refer to entity references and so the targets of the references are not translated even if the entity itself is.

benstallings’s picture

Status: Needs review » Reviewed & tested by the community

Apologies, I posted on the wrong issue.

benstallings’s picture

Status: Reviewed & tested by the community » Needs review
benstallings’s picture

Status: Needs review » Reviewed & tested by the community

Claude Code says:

Verdict: The logic is correct and well-scoped. The only actionable item for this branch is renaming $translatedEntity → $translated_entity to follow Drupal coding standards.

liam morland’s picture

It seems to me that the RTBC status is to be set when the code has been reviewed and tested by people, not by an AI.

benstallings’s picture

I (a person) also reviewed the code. :) But I thought Claude put it better.