Bug 1597540 - Provide default spellchecker.dictionary for suite. r=IanN

l10n builds might not provide this in suite-l10n.js and composing messages will
fail then.
This commit is contained in:
Frank-Rainer Grahl 2019-11-19 11:46:55 +01:00
Родитель dbb208daeb
Коммит 8098988058
2 изменённых файлов: 3 добавлений и 6 удалений

Просмотреть файл

@ -366,6 +366,7 @@ pref("mailnews.ui.deleteMarksRead", true);
// (This is intentionally on the high side; see bugs 746055 and 768015.)
pref("image.mem.max_decoded_image_kb", 256000);
pref("spellchecker.dictionary", "");
pref("spellchecker.dictionaries.download.url", "https://addons.thunderbird.net/%LOCALE%/%APP%/dictionaries");
// this will automatically enable inline spellchecking (if it is available) for

Просмотреть файл

@ -1147,13 +1147,9 @@ SuiteGlue.prototype = {
}
} catch (ex) {}
// try to get dictionary preference and initialize with blank if not set
// Try to get dictionary preference and adjust if not valid.
var prefName = "spellchecker.dictionary";
var prefValue = "";
try {
prefValue = Services.prefs.getCharPref(prefName);
} catch (ex) {}
var prefValue = Services.prefs.getCharPref(prefName);
// replace underscore with dash if found in language
if (/_/.test(prefValue)) {