RFR: 8347058: When automatically translating the page to pt-br, all CSS styling disappears
Nizar Benalla
nbenalla at openjdk.org
Thu Jan 23 12:57:56 UTC 2025
When translating to some languages like Portuguese or Arabic google translate will modify the HTML and changes the value of the HTML title Attribute.
Example when auto-translating the page to Arabic `<link rel="stylesheet" type="text/css" href="resource-files/jquery-ui.min.css" title="أسلوب">`
This patch to add a `translate="no"` attribute to the HTML `link` tag used to link CSS stylesheets, this seems to prevent the translation of the `title` property by google chrome on my local machine.
TIA
-------------
Commit messages:
- Add a new attribute to the link tag (use to link stylesheets) to stop browsers from translating it
Changes: https://git.openjdk.org/jdk/pull/23263/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23263&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8347058
Stats: 34 lines in 7 files changed: 3 ins; 0 del; 31 mod
Patch: https://git.openjdk.org/jdk/pull/23263.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23263/head:pull/23263
PR: https://git.openjdk.org/jdk/pull/23263
More information about the javadoc-dev
mailing list