Incorrectly identifies page language when it differs from the lang tag
Categories
(Firefox :: Translations, defect)
Tracking
()
People
(Reporter: bugzilla, Unassigned)
Details
Attachments
(1 file)
248.08 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0
Steps to reproduce:
Navigate to https://www.graphicsandprogramming.net/eng/tutorial/blender/modeling/blender-how-to-import-dwg-dxf-files, an English language web page.
Actual results:
Firefox offered to translate it from Portuguese.
Expected results:
Firefox should have recognised that the page is in English and not offered to translate it.
Firefox is probably doing this because the <html> tag has a lang="pt" attribute, but as this page demonstrates, that is not enough to rely on. That attribute is very likely to be some kind of default value that was configured site-wide and does not actually correspond to the content, and relying on it will probably cause many mistakes. Firefox should look at the content itself and use heuristics to determine the actual language of the page.
Comment 1•10 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Translation' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•10 months ago
|
||
I'm going to mark this as a duplicate of Bug 1859081 since it will most likely be fixed by the same behavior change. It would be good to verify the fix here. For what it's worth, the page has an <html lang="en">
for me.
Description
•