Fix locale detection on Linux, where PREF_ACCEPT_LANGUAGES is a localized pref
Bug 1114712 Add tests
Avoid a variable and use trim instead of regexp in the test
Merge pull request #1762 from freaktechnik/fix-locale-detection

Bug 1114712 - l10n module doesn't get any language on Linux r=erikvold