Closed
Bug 531667
Opened 15 years ago
Closed 15 years ago
single-locale builds should have matchOS set to false
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(fennec1.0+)
RESOLVED
FIXED
fennec1.0
Tracking | Status | |
---|---|---|
fennec | 1.0+ | --- |
People
(Reporter: mad_maks, Assigned: Pike)
Details
(Whiteboard: [fennec l10n])
Attachments
(1 file)
1.11 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
Testing the latest Fennec build on linux i noticed that the warranty warning on about:config was not localized Mozilla/5.0 (X11;U;Linux i686 (x86_64);nl;rv:1.9.2b5pre) Gecko/20091129 Namoroka/3.6b5pe Fennec/1.0b6pre using a clean profile. http://mxr.mozilla.org/l10n-mozilla1.9.2/source/nl/toolkit/chrome/global/config.dtd#41 shows it as localized
Assignee | ||
Comment 1•15 years ago
|
||
I think this has something to do with our single-locale builds still having an en-US xulrunner, and possibly matchOS still on. Moving over to fennec.
Component: Build Config → General
Product: Core → Fennec
QA Contact: build-config → general
Reporter | ||
Comment 2•15 years ago
|
||
set matchOS to false in about:config is the trick, the page is now in dutch (strange that all the UI is in dutch but that that page is looking to the OS) i think we can close this bug
Assignee | ||
Comment 3•15 years ago
|
||
We should fix this. I think we should not set matchOS in the regular builds, but set that as part of mobile-l10n.js for the multi-locale build.
Summary: [nl] localized Fennec build use en-US toolkit file → single-locale builds should have matchOS set to false
Assignee | ||
Comment 4•15 years ago
|
||
I don't have a good idea where to hook up a fix for this right now, but it's blocking the release of single locale builds.
tracking-fennec: --- → ?
Whiteboard: [fennec l10n]
Assignee | ||
Comment 5•15 years ago
|
||
I have a few ideas on how to fix this, the intended outcome of which would be: - switching off matchOS in single-locale buids - switching on matchOS in multi-locale builds Right now, the locale is set in mobile-l10n.js as part of the libs:: phase in locales/Makefile, taken from locales/en-US/mobile-l10n.js. matchOS is set statically to true in app/mobile.js. a) We could just remove matchOS from mobile.js, and only set it in mobile-l10n.js for the multi-locale build, or b) keep it in mobile.js and switch it to false in mobile-l10n.js for non-multi-builds. b) is rather hacky, I think, but might be less hacky if we actually just remove mobile-l10n.js for multi-builds. It depends on mobile-l10n.js actually overwriting mobile.js, though. I think it does, needs verification, though. The other question is how to integrate this into the build process, and I see two ways: a) create a separate target, in either app or locales/Makefile to be called by the multi-locale factory explicitly before packaging (possibly after all locales) b) add a hack to the make package target when AB_CD is set to multi. Both are somewhat weird and bound rather tightly on how the factory calls into things, so I'm not too happy with either.
Updated•15 years ago
|
tracking-fennec: ? → 1.0+
Comment 6•15 years ago
|
||
What is the status of this bug?
Assignee | ||
Comment 7•15 years ago
|
||
I'd need some opinion on comment 5. CCing some candidates, guess that ted, mfinkle, and aki stand in the first line.
Whiteboard: [fennec l10n] → [fennec l10n][needs feedback mobile, build]
Comment 8•15 years ago
|
||
(In reply to comment #5) > a) We could just remove matchOS from mobile.js, and only set it in > mobile-l10n.js for the multi-locale build, or > b) add a hack to the make package target when AB_CD is set to multi. I think I prefer these two options, assuming I understand them correctly. 1a) seems more reliable than 1b), and 2b) seems cleaner than 2a) since it will apply to anyone who calls |make package| (rather than requiring someone to know about the other target).
Comment 9•15 years ago
|
||
I don't have an opinion.
Assignee | ||
Comment 10•15 years ago
|
||
Still waiting on the final call here, I won't get a patch for this tonight.
Comment 11•15 years ago
|
||
I agree with gavin in comment 8. Sounds like the better of the approaches.
Assignee | ||
Comment 12•15 years ago
|
||
This should do it, tested with one multi-lingo and one single-locale en-US build. Didn't have time to do extensive tests, but the multi-locale build had matchOS on with my device set to german, so regression risk should be covered at least.
Assignee: nobody → l10n
Attachment #418248 -
Flags: review?(mark.finkle)
Updated•15 years ago
|
Attachment #418248 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 13•15 years ago
|
||
http://hg.mozilla.org/mobile-browser/rev/00eec851d36d, FIXED.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [fennec l10n][needs feedback mobile, build] → [fennec l10n]
Target Milestone: --- → RC
You need to log in
before you can comment on or make changes to this bug.
Description
•