Closed Bug 848297 Opened 12 years ago Closed 12 years ago

getSelectedLocale in chrome registry should allow overwritten provider

Categories

(Core :: Internationalization: Localization, defect)

22 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: Pike, Assigned: Pike)

References

Details

Attachments

(1 file, 1 obsolete file)

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.
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 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-
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 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+
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
(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?
Blocks: 869385
Blocks: 869387
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.
Blocks: 915721
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: