Closed Bug 1414878 Opened 7 years ago Closed 7 years ago

Add LocaleService::SourceLocale

Categories

(Core :: Internationalization, enhancement, P3)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1418771

People

(Reporter: zbraniecki, Unassigned)

References

(Blocks 1 open bug)

Details

In L20n world, we always have a source locale available as a last fallback.

That's different from "defaultLocale" which is the main locale the package is built with and updated for.

For regular en-US build, those two values are the same, but for example for an "it" build, the will be different:

 - defaultLocale is "it" - that's the locale we negotiate down to in case of mismatch (see bug 1391213 for details), that's the locale we call updates for etc.
 - sourceLocale in case of Gecko is always "en-US"

In the future, I believe we will be able to make Gecko not have to hard code the sourceLocale, and just retrieve this information from the build system, but at the moment, we're locked in hardcoded "en-US" both at the build and run time.
Blocks: 1346877
Priority: -- → P3
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.