RFR: 8347058: When automatically translating the page to pt-br, all CSS styling disappears
Hannes Wallnöfer
hannesw at openjdk.org
Mon Jan 27 10:36:51 UTC 2025
On Thu, 23 Jan 2025 13:49:04 GMT, Nizar Benalla <nbenalla at openjdk.org> wrote:
>> 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
>
> Passes tier 1 on linux-x64
So the stylesheeet stops working because the translation service changes the `title` attribute? I find that quite weird. Can you point me to some external discussion of this problem, @nizarbenalla?
If the `title` attribute is indeed the problem, I think I would prefer to get rid of the title attribute (with it's rather useless "Style" value) rather than adding the `translate="no"` attribute.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23263#issuecomment-2615385516
More information about the javadoc-dev
mailing list