Port bug 1506102: English is available in the main dropdown but only applies to Fluent elements
Categories
(Thunderbird :: Preferences, task)
Tracking
(thunderbird66 fixed, thunderbird67 fixed)
People
(Reporter: Paenglab, Assigned: Paenglab)
Details
Attachments
(1 file, 2 obsolete files)
|
11.37 KB,
patch
|
jorgk-bmo
:
review+
Paenglab
:
feedback+
jorgk-bmo
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
From bug 1506102:
Simple scenario: take an Italian build and enable intl.multilingual.enabled
At this point English ("Inglese (Stati Uniti)") will be available in the dropdown, but it can only translate Fluent parts without a language pack.
| Assignee | ||
Comment 1•7 years ago
|
||
Port of https://hg.mozilla.org/mozilla-central/rev/0379792adfbb. Slightly different because we haven't implemented the downloadable dictionaries.
Comment 2•7 years ago
|
||
| Assignee | ||
Comment 3•7 years ago
|
||
(In reply to Jorg K (GMT+1) from comment #2)
Comment on attachment 9043643 [details] [diff] [review]
1527653-lastFallbackLocale.patchReview of attachment 9043643 [details] [diff] [review]:
(In reply to Richard Marti (:Paenglab) from comment #1)
Slightly different because we haven't implemented the downloadable dictionaries.
Where is the difference?
https://hg.mozilla.org/mozilla-central/rev/0379792adfbb#l1.144 to 159.
::: mail/components/preferences/preferences.js
@@ +151,5 @@
- let {availableLocales, defaultLocale, lastFallbackLocale} = Services.locale;
- // If defaultLocale isn't lastFallbackLocale, then we still need the langpack
- // for lastFallbackLocale for it to be useful.
- if (defaultLocale != lastFallbackLocale) {
- let lastFallbackId =
langpack-${lastFallbackLocale}@firefox.mozilla.org;Does this make sense for TB?
Changed to langpack-${lastFallbackLocale}@thunderbird.mozilla.org
Comment 4•7 years ago
|
||
What actually happens to this variable? What is thunderbird.mozilla.org? If anything, it should be something@thunderbird.net. If in doubt, ask Andrei/Sancus.
| Assignee | ||
Comment 5•7 years ago
|
||
(In reply to Jorg K (GMT+1) from comment #4)
What actually happens to this variable? What is thunderbird.mozilla.org? If anything, it should be something@thunderbird.net. If in doubt, ask Andrei/Sancus.
It has to be thunderbird.mozilla.org because the language packs are have the ID like "langpack-de@thunderbird.mozilla.org" for the German language pack. This name is automatically created during the build of the language packs.
Comment 6•7 years ago
|
||
I think we should refactor it to look more like
https://searchfox.org/mozilla-central/rev/05d4b6962a571585bd679d2bbb0df0a5fb4e4eff/browser/components/preferences/browserLanguages.js#477-525
I haven't tested it, just reshuffled it.
| Assignee | ||
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
I don't understand the question. All I did was reshuffle the existing code and split it into three functions like M-C have it. No code was added and no behaviour was changed. Can you see that? What "this part" are you referring to?
| Assignee | ||
Comment 9•7 years ago
|
||
With "this part" is your addition, or reshuffle meant.
Comment 10•7 years ago
|
||
Hmm, I reshuffled it purely to be in sync with M-C.
Updated•7 years ago
|
Comment 11•7 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/d332fd6631c9
Port bug 1506102: Don't count lastFallbackLocale as installed when just fluent is included. r=jorgk DONTBUILD
Updated•7 years ago
|
Comment 12•7 years ago
|
||
Comment 13•7 years ago
|
||
TB 66 beta 2:
https://hg.mozilla.org/releases/comm-beta/rev/eb2114dacbe9158f999ec1a153702d3f759a458a
Updated•7 years ago
|
Description
•