A string context for threads is required

Created on 24 November 2024, 27 days ago

Problem/Motivation

Klaro comes with an option to block Treads.net embeds right out of the box. That's great. Unfortunately, the word Treads already exists on the translation server (probably due to the module form that was in Drupal Core for a long time). Suppose Klaro is installed and the German translation is used. In that case, the word ‘Themen’ (topics) appears in the Klaro service list, which can be accessed via /admin/config/user-interface/klaro/services, instead of the brand name of the social network. Of course, this does not only affect German as a language but is also used merely as an example.

For this reason, we need a context here so that the translation can be displayed correctly immediately after importing it from the translation server if German is offered as a language on a Drupal website.

Steps to reproduce

Install Drupal and select English as the default language:
e.g. drush -y si --locale=de
Install Klaro as usual
composer require ‘drupal/klaro:^3.0@RC’ && drush -y en klaro
Go to /admin/config/user-interface/klaro/services and see for yourself that the translation of the corresponding entry in the list is currently wrong.

Proposed resolution

Implement a string context https://www.drupal.org/docs/7/api/localization-api/string-context for the word threads in Klaro so that the network's brand name is displayed correctly.

Remaining tasks

Implement string context for Threads

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇩🇪Germany joachim namyslo Kulmbach 🇩🇪 🇪🇺

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

Comments & Activities

Production build 0.71.5 2024