Title not translated

Created on 2 March 2024, 9 months ago
Updated 4 March 2024, 9 months ago

Problem/Motivation

I have a multi-language site and use EBT-Text for some items.
However, when I translate the blocks, I see that only the body is showing the correct translation.
The title stays in the original language.

In the block editor itself, the language is shown in its translated language.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

1.4

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @dkyndt
  • 🇷🇸Serbia levmyshkin Novi Sad, Serbia

    Hi dkyndt, EBT Text by default uses Block Description field (Label), you should enable Configuration Translation to translation Block Description. Because it's a part of configs.

    Then check that EBT Text block type is translatable:
    /admin/config/regional/content-language

    After that it should be avaible to translate block configs:

    I tested it on my local site and it's working fine:

    You can improve UX on your own and hide Block Description field and add own new Display Title field and make new field translatable. Then this new Display Title field will be available on block content edit form for translation. Use module Fences to display Display Title as H2 tag:
    https://www.drupal.org/project/fences

    Another approach is to hide Block Description field and use CKEditor to create title in you Block Body field manually.

    If you use Layout Builder, then you will need to user additional module to translate Layout Builder pages:
    https://www.drupal.org/project/layout_builder_at
    https://www.drupal.org/project/layout_builder_st

  • Status changed to Closed: works as designed 9 months ago
  • 🇷🇸Serbia levmyshkin Novi Sad, Serbia

    Thank you for using EBT modules! Feel free to ask anothing about them.

Production build 0.71.5 2024