Problem/Motivation

On the media edit screen for an image, the button label always appears as “Generate with AI” even in a non-English UI where other strings are translated and caches have been rebuilt. This occurs across multiple projects.

Steps to reproduce

1. Install and enable the module on a multilingual site (non-English default or switch to a non-English interface language).
2. Navigate to /media/[id]/edit for an image media item.
3. Confirm the UI is translated except for the “Generate with AI” button.

Proposed resolution

I assume the string might not be translatable, if so, that might be a simple fix.

Remaining tasks

To be determined.

User interface changes

A translatable button-text

API changes

Not applicable

Data model changes

Not applicable

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

natuspella created an issue. See original summary.

natuspella’s picture

Status: Active » Needs review

Proposed a fix in MR!18

- Wrapped button label in translation function.
- Added context for translation extraction.

Now ready for review

marcus_johansson’s picture

Status: Needs review » Needs work

See svendecabooter's comment.

natuspella’s picture

Status: Needs work » Needs review

I fully agree, I removed the context.

anybody’s picture

Version: 1.0.1 » 1.0.x-dev
Status: Needs review » Reviewed & tested by the community

Thanks for the fix!