Not all the text in the overlay are tokens.

After enabling the base field definition for settings as translatable we could translate the settings. There was only one problem with rendering the language specific value. After some debugging i found a possible solution but i am not sure if this is the correct approche.

Comments

p-neyens created an issue. See original summary.

p-neyens’s picture

Title: The configuration property full_viewport.container doesn't exist » Support multilingual for property "overlay text"
StatusFileSize
new7.43 KB

After enabling Multilingual(admin/config/regional/content-language) it wasn't possible to translate the overlay text. The only supported property was the label.

p-neyens’s picture

Move previous text settings to the new fields for existing entities.

p-neyens’s picture

Status: Active » Needs review
p-neyens’s picture

Fix "Notice: Undefined index: value"

markhalliwell’s picture

Assigned: p-neyens » Unassigned
Status: Needs review » Needs work

I don't think the above patches are the correct approach. The text_format data type is already marked as "translatable". If it's not showing up as such, then something else needs to be done to the code, not manually defining a custom field.

p-neyens’s picture

We could mark the settings fields as translatable but then are all the settings language specific. What we want is only the overlay translatable.

markhalliwell’s picture

Status: Needs work » Closed (duplicate)
Related issues: +#2990856: Tokens used in overlay text don't use the translated values
p-neyens’s picture

Issue summary: View changes
Status: Closed (duplicate) » Needs review
StatusFileSize
new7.97 KB
markhalliwell’s picture

Status: Needs review » Closed (duplicate)

@p-neyens, please use the other issue.

p-neyens’s picture

@markcarver I already use the patch from the other issue. But this fix only support token translations and not translations for the text string value of a background image.

markhalliwell’s picture

Assigned: Unassigned » markhalliwell
Status: Closed (duplicate) » Needs work

Ah, I see what you're saying.

Ok, going to clean it up a bit.

markhalliwell’s picture

Assigned: markhalliwell » Unassigned
Status: Needs work » Fixed
StatusFileSize
new18.27 KB

  • markcarver committed 9e5acab on 8.x-1.x
    Issue #2977441 by markcarver, p-neyens: Support multilingual for...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.