1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-16 21:25:47 +01:00

Fix '' for a subset of cases.

This commit is contained in:
Kris Maglione
2011-01-13 12:22:46 -05:00
parent 0de4c844ef
commit 77e8bc5f65
5 changed files with 8 additions and 3 deletions

View File

@@ -595,8 +595,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
let info = context.INFO;
if (info.*.@lang.length()) {
let langs = set(String(a) for each (a in info.*.@lang));
let lang = [window.navigator.language,
window.navigator.language.replace(/-.*/, ""),
let lang = [config.language, config.language.replace(/-.*/, ""),
"en", "en-US", info.*.@lang[0]
].filter(function (l) set.has(langs, l))[0];