Index: gc_lang/fr/webext/background.js ================================================================== --- gc_lang/fr/webext/background.js +++ gc_lang/fr/webext/background.js @@ -142,38 +142,38 @@ }); } function setSpellingDictionaries (oData) { if (oData.hasOwnProperty("oPersonalDictionary")) { - // deprecated + // deprecated (to be removed in 2020) console.log("personal dictionary migration"); - browser.storage.local.set({ "dictionaries": { "__personal__": oData["oPersonalDictionary"] } }); + browser.storage.local.set({ "personal_dictionary": oData["oPersonalDictionary"] }); setDictionary("personal", oData["oPersonalDictionary"]); browser.storage.local.remove("oPersonalDictionary"); } - if (oData.hasOwnProperty("dictionaries")) { - if (oData.dictionaries.hasOwnProperty("__personal__")) { - setDictionary("personal", oData.dictionaries["__personal__"]); - } - if (oData.dictionaries.hasOwnProperty("__community__")) { - setDictionary("community", oData.dictionaries["__community__"]); - } + if (oData.hasOwnProperty("personal_dictionary")) { + setDictionary("personal", oData["personal_dictionary"]); + } + if (oData.hasOwnProperty("community_dictionary")) { + setDictionary("community", oData["community_dictionary"]); } } function init () { if (bChrome) { browser.storage.local.get("gc_options", initGrammarChecker); browser.storage.local.get("ui_options", initUIOptions); - browser.storage.local.get("dictionaries", setSpellingDictionaries); + browser.storage.local.get("personal_dictionary", setSpellingDictionaries); + browser.storage.local.get("community_dictionary", setSpellingDictionaries); browser.storage.local.get("oPersonalDictionary", setSpellingDictionaries); // deprecated browser.storage.local.get("sc_options", initSCOptions); return; } browser.storage.local.get("gc_options").then(initGrammarChecker, showError); browser.storage.local.get("ui_options").then(initUIOptions, showError); - browser.storage.local.get("dictionaries").then(setSpellingDictionaries, showError); + browser.storage.local.get("personal_dictionary").then(setSpellingDictionaries, showError); + browser.storage.local.get("community_dictionary").then(setSpellingDictionaries, showError); browser.storage.local.get("oPersonalDictionary").then(setSpellingDictionaries, showError); // deprecated browser.storage.local.get("sc_options").then(initSCOptions, showError); } init(); Index: gc_lang/fr/webext/panel/dictionaries.css ================================================================== --- gc_lang/fr/webext/panel/dictionaries.css +++ gc_lang/fr/webext/panel/dictionaries.css @@ -100,16 +100,26 @@ cursor: pointer; } .dic_button_label { display: inline-block; padding: 1px 10px; - background-color: hsl(120, 50%, 94%); + background-color: hsl(210, 50%, 94%); border-style: solid; border-width: 1px 1px 1px 0; - border-color: hsl(120, 50%, 70%); + border-color: hsl(210, 50%, 70%); border-radius: 0 3px 3px 0; } + +.apply { + display: none; + float: right; + padding: 2px 10px; + background: hsl(120, 50%, 30%); + color: hsl(120, 50%, 96%); + cursor: pointer; + border-radius: 3px; +} /* Table */ @@ -137,10 +147,10 @@ font-weight: bold; color: hsl(0, 100%, 50%); } .select_entry { cursor: pointer; - background-color: hsl(120, 50%, 30%); - color: hsl(120, 50%, 100%); + background-color: hsl(210, 50%, 30%); + color: hsl(210, 50%, 100%); border-radius: 3px; text-align: center; } Index: gc_lang/fr/webext/panel/dictionaries.html ================================================================== --- gc_lang/fr/webext/panel/dictionaries.html +++ gc_lang/fr/webext/panel/dictionaries.html @@ -10,12 +10,14 @@
[Aucun]
+