Remove mobile/android/locales/en-US/mobile-l10n.js
Categories
(Firefox Build System :: Android Studio and Gradle Integration, enhancement, P5)
Tracking
(Not tracked)
People
(Reporter: zbraniecki, Unassigned)
References
Details
| Reporter | ||
Updated•7 years ago
|
Comment 1•7 years ago
|
||
| Reporter | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
| Reporter | ||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Updated•6 years ago
|
Updated•3 years ago
|
Comment 7•4 months ago
|
||
Nick, could you confirm my understanding that we don't do single-locale Android builds any more?
Presuming that's the case, could the mobile/android/locales/en-US/mobile-l10n.js be removed, along with its localized versions? The only customizations of it that I see (ja, ja-JP-mac, and ko) are all obsolete, and as far as I can tell, ineffectual.
Comment 8•4 months ago
|
||
(In reply to Eemeli Aro [:eemeli] from comment #7)
Nick, could you confirm my understanding that we don't do single-locale Android builds any more?
We do not.
Presuming that's the case, could the
mobile/android/locales/en-US/mobile-l10n.jsbe removed, along with its localized versions? The only customizations of it that I see (ja, ja-JP-mac, and ko) are all obsolete, and as far as I can tell, ineffectual.
Don't we need something for plain old developer en-US versions? (But it might not need to be locale aware.). Or am I missing something?
Comment 9•4 months ago
|
||
(In reply to Nick Alexander :nalexander [he/him] from comment #8)
Don't we need something for plain old developer
en-USversions? (But it might not need to be locale aware.). Or am I missing something?
Isn't that effectively mobile/android/installer/mobile-l10n.js? Or could it too be dropped? I see its only pref intl.locale.requested also being set here in mobile/android/app/geckoview-prefs.js.
To be clear, how/whether these pref files are even being included in the build is pretty mysterious to me.
Comment 10•2 months ago
|
||
(In reply to Eemeli Aro [:eemeli] from comment #9)
(In reply to Nick Alexander :nalexander [he/him] from comment #8)
Don't we need something for plain old developer
en-USversions? (But it might not need to be locale aware.). Or am I missing something?Isn't that effectively
mobile/android/installer/mobile-l10n.js?
Yes, I think you're correct.
Or could it too be dropped? I see its only pref intl.locale.requested also being set here in mobile/android/app/geckoview-prefs.js.
Oh, that's fun! So now that we only ship a multi-locale GV, it always makes sense to follow the device setting (intl.locale.requested=""), and we don't need a bunch of these shenanigans. I think we can probably get rid of both of these mobile-l10n.js files and verify that en-US builds still work (automated tests) and that CI builds of GV still work (testing a Nightly Fenix should do it).
To be clear, how/whether these pref files are even being included in the build is pretty mysterious to me.
Yeah, it's madness -- in some WIP patch in my tree, I have a comment explaining how this works. Get rid of it entirely and we don't need to worry about getting it correct at build-time, we can just do the locale sniffing at runtime.
Description
•