Open Bug 1859081 Opened 11 months ago Updated 3 months ago

Run language detection before offering a translation (dxomark.com website detected as being French)

Categories

(Firefox :: Translations, defect, P3)

Firefox 118
defect

Tracking

()

REOPENED

People

(Reporter: aros, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0

Steps to reproduce:

Firefox needlessly offers to translate it from French to English which doesn't make any sense.

I'm using Firefox 118.0.2 (the official build) under Linux.

I've forgotten to specify the exact URL, it's https://www.dxomark.com/smartphones/#sort-camera

Component: Untriaged → Translation

view-source:https://www.dxomark.com/smartphones/#sort-camera

See the first two lines are

<!DOCTYPE html>
<html lang="fr">

So this is a problem with the website that the owners would need to fix.

Status: UNCONFIRMED → RESOLVED
Closed: 11 months ago
Resolution: --- → INVALID

In the translations meeting we discussed a change in strategy to address issues like this.

Our new language detection strategy will be:

  • If there is no language tag - run language detection
  • If the language tag should not offer a translation - do not run language detection
  • If the language tag should offer a translation - run the language detection as well

Then if language detection runs:

  1. langtag is empty: use language detection result
  2. langtag and detection agree: offer translation
  3. langtag and detection disagree: do not offer translation
    a. If langtag or detected language are supported, still show the translations icon without pop-up When pop-up is opened, show "Choose a language" as the from-language.
    b. If neither langtag nor detected language are supported, do not show the icon.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: INVALID → ---
Summary: dxomark.com website detected as being French → Run language detection before offering a translation (dxomark.com website detected as being French)
Severity: -- → S3
Priority: -- → P3
Blocks: 1861698
See Also: → 1863570
Duplicate of this bug: 1867995

It would be worth verifying the fix on this case as well: Bug 1859081

(In reply to Greg Tatum [:gregtatum] from comment #3)

In the translations meeting we discussed a change in strategy to address issues like this.

Our new language detection strategy will be:

  • If there is no language tag - run language detection
  • If the language tag should not offer a translation - do not run language detection
  • If the language tag should offer a translation - run the language detection as well

Then if language detection runs:

  1. langtag is empty: use language detection result
  2. langtag and detection agree: offer translation
  3. langtag and detection disagree: do not offer translation
    a. If langtag or detected language are supported, still show the translations icon without pop-up When pop-up is opened, show "Choose a language" as the from-language.

I found this "bug" while trying to report Firefox stable&nightly suggesting to translate from Italian to English (my locale) at https://fing.com

When I check the page source first lines are:
<!DOCTYPE html>
<html lang="it" class="sk-device--desktop" data-lang="it">

which is clearly a bug at website and reported. However, it also means the detection does detect it as Italian as well.

Attached file fing.html

Snapshot of https://fing.com ' curl https://www.fing.com >fing.html' ( current UNIX time 1709783987 )

Duplicate of this bug: 1892559
Duplicate of this bug: 1895066
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: