1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 09:17:58 +01:00

Add 'spelllang'. Closes issue #530.

This commit is contained in:
Kris Maglione
2011-08-06 08:47:36 -04:00
parent 4958d6854f
commit d828a53b7a
5 changed files with 30 additions and 0 deletions

View File

@@ -855,6 +855,21 @@ var Editor = Module("editor", {
options.add(["insertmode", "im"],
"Enter Insert mode rather than Text Edit mode when focusing text areas",
"boolean", true);
options.add(["spelllang", "spl"],
"The language used by the spell checker",
"string", config.locale,
{
initValue: function () {},
getter: function getter() services.spell.dictionary || "",
setter: function setter(val) { services.spell.dictionary = val; },
completer: function completer(context) {
let res = {};
services.spell.getDictionaryList(res, {});
context.completions = res.value;
context.keys = { text: util.identity, description: util.identity };
}
});
}
});