Remove div tags from translatable strings

Created on 21 March 2015, over 9 years ago
Updated 24 July 2024, 3 months ago

There are some strings in AT theme settings which can not be translated ("HTML tags are not allowed"). For example:

<div class="description">Files will be saved to: <code>@public_files


<div class="description">Files will be saved to: <code>@theme_directory


<div class="description">In this layout <em>Second sidebar</em> wraps below.</div>

Steps to reproduce

  1. Install and activate any language different from English
  2. Install and activate Adaptive Theme
  3. Go to admin->Regional and Language->Interface Translation and try to manually translate AT or import an AT .po file
    1. Proposed solution

      Move div tags anywhere outside t function in order to be able to translate those strings.

🐛 Bug report
Status

Fixed

Version

3.2

Component

Theme Settings

Created by

🇪🇸Spain Pablo Romero

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.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    HTML tags do not need to be translated: A <div> is still a <div>, whichever language is used for the page.
    Translators should not change a HTML tag used in a translatable string, though. They do not know where the HTML markup is used, they could make the full page not correct.

Production build 0.71.5 2024