Simple Bloc entities not translatable by non admin users

Created on 11 July 2023, about 1 year ago
Updated 7 March 2024, 6 months ago

Problem/Motivation

Simple Block entities are easily translatable by users with administrator role using either contextual links or Operations drop-down menu in the Simple Blocks admin page (/admin/structure/block/simple-block). In both cases, a 'Translate' menu option is available.
For other roles, this 'Translate' menu option is not available.
I could not find out a way to give non admin roles permission to translate Simple Block blocks.

Custom Blocks are made translatable by checking the corresponding checkbox in the Content Language admin page (/admin/config/regional/content-language) and then the 'Translate custom block' permission can be given to any role in the permissions admin page.

It would be so helpful to have a similar mechanism for Simple Blocks.
Currently, the only way to allow users to translate Simple Blocks is to give them administrator role.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France jabberwooki

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

Merge Requests

Comments & Activities

  • Issue created by @jabberwooki
  • First commit to issue fork.
  • 🇮🇳India roshni27

    When installing the 'Simple Block' module, we need to include a preprocess setup from the core language translate module.This setup involves providing a checkbox on the content language administration page (/admin/config/regional/content-language) for the "Simple Block" module. Additionally, we should create a permission that grants access to translate the content of the "Simple Block" for other users.
    If you want we can implement .
    Thanks.

  • Merge request !22Issue #3373975 - Add new permissions → (Merged) created by AstonVictor
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 8
    last update 7 months ago
    1 pass
  • 🇺🇦Ukraine AstonVictor

    Hi there,

    actually, it's impossible to add simple block configurations on the /admin/config/regional/content-language page because simple blocks are configs and not content.
    you can find all simple blocks to translate on the /admin/config/regional/config-translation/simple_block page.

    for having the 'translate' operation the user should have two permissions:
    - Administer blocks
    - Translate configuration

    I added two additional permissions:
    - Edit simple blocks
    - Delete simple blocks

    you can use them in case you don't want to give the 'administer blocks' permission.
    Note that the translation action uses an update operation. So you can use the pair of 'Edit simple blocks' + 'Translate configuration' permissions to translate simple blocks as well.

  • Status changed to Fixed 7 months ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024