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

Created on 16 October 2020, over 3 years ago
Updated 22 January 2023, over 1 year 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 Bayreuth πŸ‡©πŸ‡ͺ πŸ‡ͺπŸ‡Ί

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.69.0 2024