Page MenuHomePhabricator

Firefox - side effect - Language choice in Preferences should not alter header <html ... lang="de" dir="ltr">
Closed, InvalidPublicBUG REPORT

Assigned To
None
Authored By
Shyamal
Jan 9 2026, 3:55 AM
Project Tags
None
Referenced Files
F71475493: bg.jpg
Jan 9 2026, 3:55 AM
F71475494: de.jpg
Jan 9 2026, 3:55 AM

Description

Steps to replicate the issue (include links if applicable):

  • I go to the German Wikipedia and change my preference language to English

What happens?:

  • the header changes from <html .... lang="de" dir="ltr"> to <html .... lang="en" dir="ltr">
  • Firefox has its internal translation tool which no longer shows because my browser and system language are "en"

What should have happened instead?:

  • Since my language only alters the menu and sidebar text and not the wikipedia page content, the header language indicator should not be changed.
  • This only affects logged-in users for whom the language of the content they are browsing is primary and would be benefitted by any browser-translation tool recognizing it correctly.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Wikipedia

Other information (browser name/version, screenshots, etc.):
Firefox
Notice that Firefox shows the translate toobar in Bulgarian but not in German where my preference is set to "en"

de.jpg (921×476 px, 119 KB)

bg.jpg (934×431 px, 89 KB)

Event Timeline

This feels like it's a bug in your browser not in MediaWiki. The lang attribute on the HTML is correct - that part is in English. The content of the page is in German, and that's correctly indicated by <div class="mw-content-ltr mw-parser-output" lang="de"> further down on the page.

@Pppery you may be right - the https://support.mozilla.org/en-US/kb/website-translation FAQ here says:

What if I encounter a page with mixed languages or content in multiple languages? Will the translation still work?

While the translation feature primarily focuses on the main language of the webpage, it may not handle pages with mixed languages or content in multiple languages optimally.

This looks a problem in Firefox software.