mozilla/addon-sdk — pull request #329 by ochameau (2012-01-19 16:26:55+00:00)
Title: Bug 711041: Improve locale matching in l10n module

- fix handling of 3 parts locales, like "ja-JP-mac"
- use same algorithm than AddonManager,
- and uses web content locale before en-US fallback.

See bugzilla for more context.