Project

General

Profile

Actions

Feature #12148

closed
HE MV

translate="no" attribute in html - Tag

Feature #12148: translate="no" attribute in html - Tag

Added by Harald Elmer almost 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
11/13/2023
Due date:
% Done:

100%

Estimated time:

Description

is there any possibility to add the translate="no" attribute to a wt - html - tag ? thanks.

MV Updated by Matthias Van Ceulebroeck almost 3 years ago Actions #1

  • Tracker changed from Support to Feature
  • Target version set to 4.10.3

Hi,

we currently do not allow setting any attribute on either the body or html tags. You can set styleclasses on either of them.
Any other widget can carry any self-defined attibute.

This seems to be missing functionality in my opinion. I will schedule this.

HE Updated by Harald Elmer almost 3 years ago Actions #2

The reaseon for this is, that Firefox is intrusive suggesting the translation of the site for some time. Accepting this, leads to some strange behaviour in wt. My first solution was to set locale to "de" but this didn't avoid the translation-dialog, as setLocale in my opinion comes too late. In this case you get different html-Tags if you inspect with F12 or open the View-Html-Source in firefox.

Conclusion: If implemented, the translate="no" (or lang="de") should avoid the translation-box in firefox for locale="de".

MV Updated by Matthias Van Ceulebroeck almost 3 years ago Actions #3

  • Status changed from New to InProgress
  • Assignee set to Matthias Van Ceulebroeck

MV Updated by Matthias Van Ceulebroeck almost 3 years ago Actions #4

  • Status changed from InProgress to Review
  • Assignee deleted (Matthias Van Ceulebroeck)

MV Updated by Matthias Van Ceulebroeck over 2 years ago Actions #5

  • Status changed from Review to Implemented @Emweb
  • Assignee set to Matthias Van Ceulebroeck

MV Updated by Matthias Van Ceulebroeck over 2 years ago Actions #6

  • % Done changed from 0 to 100

DM Updated by Dries Mys over 2 years ago Actions #7

Note that this issue is related to Bug #11129 (html lang attribute is not correctly set in plain html mode (including bot mode))

The current solution still uses a hard coded "lang" attribute.

MV Updated by Matthias Van Ceulebroeck about 2 years ago Actions #8

  • Status changed from Implemented @Emweb to Closed

KA Updated by Kiko Albiol over 1 year ago Actions #9

The problem is that WRenderer starts without a loaded application app_ pointer nullptr, so it is not possible to load setHtmlAttribute at the very begining.

Actions

Also available in: PDF Atom