Closed Bug 1847405 Opened 2 years ago Closed 2 years ago

Impossible to remove a UI language from settings (remove button not working)

Categories

(Firefox :: Settings UI, defect)

Firefox 116
defect

Tracking

()

RESOLVED DUPLICATE of bug 1766756

People

(Reporter: e412byoy7, Unassigned)

Details

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

Steps to reproduce:

  1. make sure that "English (CA)" is added to your browser-languages list at about:preferences#general
  2. in language settings, click on "Search for more languages..."
  3. in the dropdown list, also click on "Search for more languages..."
  4. Click on "English (CA)"
  5. click on "Remove"
  6. click on "OK"

Actual results:

"English (CA)" still is in the list.

Expected results:

Any language removed should actually be removed and not remain.

The Bugbug bot thinks this bug should belong to the 'Core::Internationalization' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Internationalization
Product: Firefox → Core

Please open about:support, then copy and paste here the content of the Internationalization & Localization table.

I suspect you are using the en-CA build, which means you can't remove that language.

Flags: needinfo?(e412byoy7)

I never had CA in my languages list, and never added it

Internationalization & Localization
Application Settings
Requested Locales ["en-US","de"]
Available Locales ["en-US","en-CA","de"]
App Locales ["en-US","en-CA","de"]
Regional Preferences ["en-US","en-CA","de"]
Default Locale "de"
Operating System
System Locales ["de-DE"]
Regional Preferences ["de-DE"]

Flags: needinfo?(e412byoy7) → needinfo?(francesco.lodolo)

OK, this looks like an en-US build with en-CA and de installed as additional languages.

  1. Do you see both these languages (German, Canadian English) when you click "Set alternatives"?
  2. Is the Remove button enabled when you select one but it doesn't work?
  3. Is there any error showing in the Browser Console (from Tools->Browser tools) when you click it?

I tried on Firefox 116 and it works as expected for me.

Flags: needinfo?(francesco.lodolo)
  1. yes
  2. it is only enabled when I highlight the CA one, but ultimately doesn't work. First, it does disappear from the list in the "Firefox Language Settings" window, but ultimately, in the "Language" list on the about:preferences page, it remains, and also pops back up when opening the "Firefox Language Settings" window again. (the "remove"-button is not enabled when selecting either "german" or "English US", no matter if I currently have English US or german set as active language)
  3. Right after startup of Fx, this already is logged: "Missing resource in locale en-CA: devtools/client/toolbox.ftl" After clicking around a few times in about:preferences, these appear aswell:
    "Element.releaseCapture() is deprecated. Use Element.releasePointerCapture() instead. For more help https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture - menupopup.js:160:13

Key event not available on some keyboard layouts: key=“i” modifiers=“accel,alt,shift” id=“key_browserToolbox” - browser.xhtml"

Flags: needinfo?(francesco.lodolo)

Thanks. How familiar are you with profiles? Are you comfortable in trying on a new Firefox profile, just to confirm if it works as expected on your system?

I'm moving this over to Settings UI, but it will be hard to solve, unless we figure out a way to replicate it on another system.

Is there anything notable about your system, e.g. multiple users, limited rights?

Component: Internationalization → Settings UI
Flags: needinfo?(francesco.lodolo)
Product: Core → Firefox
Summary: removing a browser-language is not working → Impossible to remove a UI language from settings (remove button not working)

Oh yes, super familiar with profiles. xD Will test later today when I'm home again. Nothing notable I could think of atm.

(In reply to Dan from comment #7)

Oh yes, super familiar with profiles. xD Will test later today when I'm home again. Nothing notable I could think of atm.

Hey Dan, any luck trying this?

Flags: needinfo?(e412byoy7)

YES!!!! Reproducible with new profile!!! Profile language: german. Then add both English CA and English US. Now restart profile/browser and remove CA. It WILL initially be removed from the list in the window, but then WON'T be removed from the list that is visible on the "about:preferences#general" page after clicking "ok"...

Flags: needinfo?(e412byoy7) → needinfo?(gijskruitbosch+bugs)

Thanks, your last comment helped me understand what you mean.

Clicking Remove removes the language from the list of requested locales, but it doesn't remove the underlying language pack. When you go back to the main Settings page, English (CA) is still listed for this reason.

What's even more confusing is that, if you go back to Set alternatives, the language is not listed among the Installed languages (while it actually is).

While searching, I also realized we already had a bug on file, still open (bug 1766756).

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1766756
Flags: needinfo?(gijskruitbosch+bugs)
Resolution: --- → DUPLICATE

Francesco do you know of a way to manually remove a language pack? (via a command or about:config?)

about:addons, languages tab, it can be removed as a normal add-on

Thanks so much!!!

You need to log in before you can comment on or make changes to this bug.