Closed
Bug 848297
Opened 12 years ago
Closed 12 years ago
getSelectedLocale in chrome registry should allow overwritten provider
Categories
(Core :: Internationalization: Localization, defect)
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: Pike, Assigned: Pike)
References
Details
Attachments
(1 file, 1 obsolete file)
6.07 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
We want sparse localizations of toolkit for both Android and Firefox OS multilocale builds.
The easiest way to do that is to overload the files that are actually used with a different package, but then getSelectedLocale() is wrong. So is GetLocalesForPackage().
Let's allow to tell the chrome registry which provider to ask a different package by adding a pref branch.
Assignee | ||
Comment 1•12 years ago
|
||
Let's see what try thinks, https://tbpl.mozilla.org/?tree=Try&rev=cd9a6eb14d45
Assignee | ||
Comment 2•12 years ago
|
||
I didn't get feedback from the Android folks yet, but I expect we'll end up needing this for b2g RSN, so requesting review.
Attachment #726393 -
Flags: review?(benjamin)
Comment 3•12 years ago
|
||
Comment on attachment 726393 [details] [diff] [review]
add a prefbranch to override getSelectedLocale
I don't want to hold the long-lived branch object, and we don't need the special safe-mode behavior. Please just have nsChromeRegistryChrome::OverrideLocalePackage use mozilla::Preferences directly and skip the branch goop.
Attachment #726393 -
Flags: review?(benjamin) → review-
Assignee | ||
Comment 4•12 years ago
|
||
Addressing the review comments, using the mozilla::Preferences api, don't store a pref branch.
Attachment #726393 -
Attachment is obsolete: true
Attachment #732328 -
Flags: review?(benjamin)
Comment 5•12 years ago
|
||
Comment on attachment 732328 [details] [diff] [review]
now with easier pref logic
This really sucks and if there isn't a bug filed on removing this hack, please file one. But it's ok for now.
Attachment #732328 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 6•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/21cd4d9e679b, and I'll file a follow-up next.
Comment 7•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
Comment 8•12 years ago
|
||
(In reply to Axel Hecht [:Pike] from comment #6)
> https://hg.mozilla.org/integration/mozilla-inbound/rev/21cd4d9e679b, and
> I'll file a follow-up next.
What is the follow up bug number?
Assignee | ||
Comment 9•12 years ago
|
||
I've filed two follow-ups, bug 869385 to not use prefs if we have a better storage for this data, and bug 869387 to rip out this code path completely once we support sparse localizations/l10n fallback at runtime.
You need to log in
before you can comment on or make changes to this bug.
Description
•