Differences From Artifact [3152c4204d]:
- File gc_lang/fr/mailext/content/overlay.js — part of check-in [6ccbd8eea2] at 2019-09-06 11:49:56 on branch tbme — [tb] ui: text formatter adjustments (bugs workaround) (user: olr, size: 40035) [annotate] [blame] [check-ins using] [more...]
To Artifact [fc3e43bc6f]:
- File gc_lang/fr/mailext/content/overlay.js — part of check-in [13c026add9] at 2020-01-02 09:37:56 on branch tbso — [tb] option for spelling selection (user: olr, size: 40500) [annotate] [blame] [check-ins using]
| ︙ | |||
40 41 42 43 44 45 46 47 48 49 50 51 52 53 | 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | + + + + + + + + |
this.xGCEWorker = new BasePromiseWorker('chrome://promiseworker/content/gce_worker.js');
let that = this;
let xPromise = this.xGCEWorker.post('loadGrammarChecker', [prefs.getCharPref("sGCOptions"), "Thunderbird"]);
xPromise.then(
function (aVal) {
console.log(aVal);
prefs.setCharPref("sGCOptions", aVal);
// spelling dictionary
if (prefs.getCharPref("sMainDicName")) {
let sMainDicName = prefs.getCharPref("sMainDicName");
if (sMainDicName == "fr-classic.json" || sMainDicName == "fr-reform.json") {
that.xGCEWorker.post("setDictionary", ["main", sMainDicName]);
}
}
// personal dictionary
if (prefs.getBoolPref("bPersonalDictionary")) {
let sDicJSON = oFileHandler.loadFile("fr.personal.json");
if (sDicJSON) {
that.xGCEWorker.post('setDictionary', ["personal", sDicJSON]);
}
}
},
|
| ︙ |