seperate UI text from htnl code to make the module translateable 100 %

Created on 16 October 2020, about 4 years ago
Updated 22 January 2023, almost 2 years ago

Problem/Motivation

Strings containing

or html teags are currently not translateable see:

Steps to reproduce

try to translate the folllowing strings to arabic. get them accepted and than import arabic translations
https://localize.drupal.org/translate/languages/de/translate?project=var...

You'll see import will fail

Proposed resolution

exclude all html Tags from t() so that only text will be submitted to l.d.o in 9.x

So that for example the first string would be separated in two, then

<div class="jumbotron text-center">
  <p> There are no blog posts now! </p>
  <a class="btn btn-primary hidden-anonymous visible-admin" href="[site:url]/node/add/varbase_blog/"> Add One Now </a>
</div>

will be

#1 There are no blog posts now!

#2 Add One Now

Do this for the rest of translation strings containing <div > or <button> tags, too

If it works, the module could be translated up to 100 %

If not we need to inform core maintainers , again, to fix malformed html filter in api.

Remaining tasks

test if the suggested fix wroks.

User interface changes

change translations in 9.x branch

API changes

none

Data model changes

none

🐛 Bug report
Status

Needs work

Version

9.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

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024