Project

General

Profile

Actions

Feature #12148

open

translate="no" attribute in html - Tag

Added by Harald Elmer 6 months ago. Updated 3 months ago.

Status:
Implemented @Emweb
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.

Actions #1

Updated by Matthias Van Ceulebroeck 5 months ago

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

Actions #2

Updated by Harald Elmer 5 months ago

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

Actions #3

Updated by Matthias Van Ceulebroeck 5 months ago

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

Updated by Matthias Van Ceulebroeck 5 months ago

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

Updated by Matthias Van Ceulebroeck 5 months ago

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

Updated by Matthias Van Ceulebroeck 5 months ago

  • % Done changed from 0 to 100
Actions #7

Updated by Dries Mys 3 months ago

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.

Actions

Also available in: Atom PDF