mozintl: "skr" is incorrectly defined in region() instead of language() set
Categories
(Core :: Internationalization: Localization, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr128 | --- | fixed |
| firefox129 | --- | wontfix |
| firefox130 | --- | fixed |
| firefox131 | --- | fixed |
People
(Reporter: henry-x, Assigned: flod)
References
(Regression)
Details
(Keywords: regression)
Attachments
(3 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-esr128+
|
Details | Review |
Bug 1899905 added skr to the availableLocaleDisplayNames.region but did not add a corresponding entry in regionNames.ftl. So getRegionDisplayNames will give a fluent error for missing region-name-skr.
Was it meant to be added to availableLocaleDisplayNames.language instead?
Comment 1•2 years ago
|
||
:bolsson, since you are the author of the regressor, bug 1899905, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 2•2 years ago
|
||
Thanks for catching, that's indeed an error.
So getRegionDisplayNames will give a fluent error for missing region-name-skr.
I haven't been able to trigger this error. When do you see it?
| Assignee | ||
Comment 3•2 years ago
|
||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Reporter | ||
Comment 5•2 years ago
•
|
||
I haven't been able to trigger this error. When do you see it?
It comes from Tor Browser. When a user is having trouble connecting to tor due to censorship, they can select their region to find them a suitable tor bridge. We basically do the following:
const codes = Services.intl.getAvailableLocaleDisplayNames("region");
const names = Services.intl.getRegionDisplayNames(undefined, codes);
With ESR 128 we started getting the fluent error message.
| Assignee | ||
Comment 6•2 years ago
|
||
I'll wait for this to land, test it, and then request uplift to beta and ESR128.
Comment 7•2 years ago
|
||
Set release status flags based on info from the regressing bug 1899905
Comment 8•2 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 9•2 years ago
|
||
Verified on Nightly Saraiki build (20240806211239), the language name is now displayed correctly in the accept-languages dialog.
| Assignee | ||
Comment 10•2 years ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D218628
Updated•2 years ago
|
| Assignee | ||
Comment 11•2 years ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D218628
Updated•2 years ago
|
Comment 12•2 years ago
|
||
beta Uplift Approval Request
- User impact if declined: Users of Saraiki (skr) builds will see the language displayed as [skr] in the accept-languages dialog.
- Code covered by automated testing: no
- Fix verified in Nightly: yes
- Needs manual QE test: no
- Steps to reproduce for manual QE testing: No
- Risk associated with taking this patch: None
- Explanation of risk level: skr was incorrectly defined in the set of regions instead of languages.
- String changes made/needed: None
- Is Android affected?: no
Comment 13•2 years ago
|
||
esr128 Uplift Approval Request
- User impact if declined: Users of Saraiki (skr) builds will see the language displayed as [skr] in the accept-languages dialog. This is also triggering a warning in Web Console for Tor Browser, which is based on ESR branches.
- Code covered by automated testing: no
- Fix verified in Nightly: yes
- Needs manual QE test: no
- Steps to reproduce for manual QE testing: -
- Risk associated with taking this patch: None
- Explanation of risk level: skr was incorrectly defined in the set of regions instead of languages.
- String changes made/needed: None
- Is Android affected?: no
Updated•2 years ago
|
Comment 14•2 years ago
|
||
| uplift | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 15•2 years ago
|
||
| uplift | ||
Updated•2 years ago
|
Updated•2 years ago
|
Description
•