Closed Bug 1867995 Opened 10 months ago Closed 10 months ago

Incorrectly identifies page language when it differs from the lang tag

Categories

(Firefox :: Translations, defect)

Firefox 120
defect

Tracking

()

RESOLVED DUPLICATE of bug 1859081

People

(Reporter: bugzilla, Unassigned)

Details

Attachments

(1 file)

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.

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.

Component: Untriaged → Translation

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.

Status: UNCONFIRMED → RESOLVED
Closed: 10 months ago
Duplicate of bug: 1859081
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: