Installed languages list for translations does not respect new display language
Categories
(Firefox :: Translations, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox139 | --- | fixed |
People
(Reporter: neal.van.meerbeek, Assigned: keanucuco, Mentored)
References
Details
(Keywords: good-first-bug)
Attachments
(3 files, 2 obsolete files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0
Steps to reproduce:
After changing Firefox display languages from Dutch to English(US), the languages shown under "Install languages for offline translation" remain displayed in the old display language.
Please find attached the screenshot for my Language settings.
Steps to reproduce:
- Change Display Language
- Go to Language settings
Actual results:
Languages for offline translation are displayed in the old Display Language.
Expected results:
Languages for offline translation are displayed in the new Display Language.
Comment 1•2 years 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•2 years ago
|
||
Indeed after changing the display language the old one still persisted until first Firefox restart on Mac12.6 using FF build 118.0b3.
Neal, can you please confirm whether the issue persists after Firefox restart. Thank you so much.
It does persist after multiple Firefox restarts on Firefox 118.0.1 and Windows 11, even after reinstalling Firefox. Interestingly, creating a new profile fixes the issue for said new profile.
Comment 4•2 years ago
|
||
The fix here is to listen to the "intl:app-locales-changed" and re-build the language list. For me restarting the browser fixes it, so I'm not reproducing on macOS either. We should verify on Windows.
This searchfox link shows how to add an observer and listen to it.
The this
object for the observer should be the TranslationsState
instance. The language list is built here: https://searchfox.org/mozilla-central/rev/95787423bc1c7ba895ef9c6918feb054866d9f41/browser/components/preferences/main.js#1031-1061
Comment 5•2 years ago
|
||
Hi, i am an outreachy applicant and wanted to solve this issue. Could you please assign it to me.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 9•2 years ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.
Comment 10•6 months ago
|
||
Is this bug appropriate any more? The current Nightly doesn't let you choose a UI language.
Comment 11•6 months ago
|
||
I can't seem to attach a screenshot from the nightly build to show this.
Comment 12•6 months ago
|
||
Hi Kenan, thanks for asking.
This is still an issue.
Firefox Nightly only has the single language that you chose when you downloaded it by default. Adding another language to Nightly is a manual process, which is why you don't see the option in the settings.
If you were to change your language in Release Firefox, however, the language display names would not be updated with the rest of the UI.
This is somewhat of a lower-urgency issue because simply reloading the page fixes the names, which is probably why it has gone unfixed for so long.
However, it remains a good first bug. Are you interested in implementing a fix for this?
Comment 13•6 months ago
|
||
Yeah, I'd be interested in taking a crack at this, but I'm first getting some groundwork done.
I'm compiling the Nightly from Mercurial, and I see a note that if you are using a Nightly you have to download the appropriate version. How can I compile more than one language into my Mercurial builds?
Comment 14•6 months ago
|
||
So would this change be as simple as the following?
- add an 'intl:app-locales-changed' observer to init()
- call buildLanguagesList in observe()
Assignee | ||
Comment 15•5 months ago
|
||
Updated•5 months ago
|
Assignee | ||
Comment 16•5 months ago
|
||
Comment 17•4 months ago
|
||
Comment 18•4 months ago
|
||
bugherder |
Updated•4 months ago
|
Description
•