Grammalecte  Check-in [1a047a0b91]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[fx] remove access to community dictionaries
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256:1a047a0b91f3cd5d2a4ba5a3b2bdd6831d7b143c072a0c90bee250d5d3a1997b
User & Date: olr 2019-04-03 14:52:53
Context
2019-04-03
15:02
[fx] add a lexicon editor entry to the menu check-in: fbf4f3afee user: olr tags: fx, trunk
14:52
[fx] remove access to community dictionaries check-in: 1a047a0b91 user: olr tags: fx, trunk
14:34
[tb] remove extended dictionary labels check-in: 77ef752105 user: olr tags: tb, trunk
Changes

Changes to gc_lang/fr/webext/background.js.

   289    289   // Page
   290    290   browser.contextMenus.create({ id: "rightClickLxgPage",          title: "Lexicographe (page)",                       contexts: ["all"] }); // on all parts, due to unwanted selection
   291    291   browser.contextMenus.create({ id: "rightClickGCPage",           title: "Correction grammaticale (page)",            contexts: ["all"] });
   292    292   browser.contextMenus.create({ id: "separator_page",             type: "separator",                                  contexts: ["all"] });
   293    293   // Tools
   294    294   browser.contextMenus.create({ id: "conjugueur_window",          title: "Conjugueur [fenêtre]",                      contexts: ["all"] });
   295    295   browser.contextMenus.create({ id: "conjugueur_tab",             title: "Conjugueur [onglet]",                       contexts: ["all"] });
   296         -browser.contextMenus.create({ id: "dictionaries",               title: "Dictionnaires",                             contexts: ["all"] });
          296  +//browser.contextMenus.create({ id: "dictionaries",               title: "Dictionnaires",                             contexts: ["all"] });
   297    297   browser.contextMenus.create({ id: "lexicon_editor",             title: "Éditeur lexical",                           contexts: ["all"] });
   298    298   // Rescan page
   299    299   browser.contextMenus.create({ id: "separator_rescan",           type: "separator",                                  contexts: ["editable"] });
   300    300   browser.contextMenus.create({ id: "rescanPage",                 title: "Rechercher à nouveau les zones de texte",   contexts: ["editable"] });
   301    301   
   302    302   
   303    303   browser.contextMenus.onClicked.addListener(function (xInfo, xTab) {

Changes to gc_lang/fr/webext/manifest.json.

    99     99       "conjugueur_window": {
   100    100         "suggested_key": { "default": "Ctrl+Shift+7" },
   101    101         "description": "Ouvre le conjugueur dans une fenêtre"
   102    102       },
   103    103       "lexicon_editor": {
   104    104         "suggested_key": { "default": "Ctrl+Shift+8" },
   105    105         "description": "Ouvre l’éditeur lexical"
   106         -    },
   107         -    "dictionaries": {
   108         -      "suggested_key": { "default": "Ctrl+Shift+9" },
   109         -      "description": "Ouvre le gestionnaire de dictionnaires communautaires"
   110    106       }
   111    107     },
   112    108   
   113    109     "web_accessible_resources": [
   114    110       "content_scripts/panel.css",
   115    111       "content_scripts/panel_tf.css",
   116    112       "content_scripts/panel_gc.css",

Changes to gc_lang/fr/webext/panel/lex_editor.html.

    15     15         <div class="big_block">
    16     16           <div class="dic_container">
    17     17             <div><h3>Dictionnaire</h3></div>
    18     18             <div class="dic_container">
    19     19               <select id="dic_selector">
    20     20                 <option value="__personal__">__personnel__</option>
    21     21               </select>
    22         -            <div id="new_dictionary_button" title="Créer un dictionnaire partagé">+</div>
           22  +            <!--<div id="new_dictionary_button" title="Créer un dictionnaire partagé">+</div>-->
    23     23               <div id="delete_dictionary_button" title="Supprimer ce dictionnaire">−</div>
    24     24             </div>
    25     25   
    26     26             <div>[<span id="dic_save_date">—</span>]</div>
    27     27             <div><span id="dic_num_entries">0</span> entrées</div>
    28     28             <div>
    29     29               <input type="file" id="import_input" accept=".json" style="display: none;">

Changes to gc_lang/fr/webext/panel/main.html.

    96     96             <p class="shortcut_label">Correcteur grammatical</p>
    97     97             <p class="shortcut">CTRL+MAJ+6</p>
    98     98             <p class="shortcut_label">Conjugueur (dans un onglet)</p>
    99     99             <p class="shortcut">CTRL+MAJ+7</p>
   100    100             <p class="shortcut_label">Conjugueur (dans une fenêtre)</p>
   101    101             <p class="shortcut">CTRL+MAJ+8</p>
   102    102             <p class="shortcut_label">Éditeur lexical</p>
   103         -          <p class="shortcut">CTRL+MAJ+9</p>
   104         -          <p class="shortcut_label">Dictionnaires communautaires</p>
          103  +          <!--<p class="shortcut">CTRL+MAJ+9</p>
          104  +          <p class="shortcut_label">Dictionnaires communautaires</p>-->
   105    105           </section> <!-- #ui_options_page -->
   106    106   
   107    107           <section id="gc_options_page" class="page">
   108    108             <h1>OPTIONS GRAMMATICALES</h1>
   109    109             <div id="grammar_options">
   110    110               ${webextOptionsHTML}
   111    111             </div>
................................................................................
   117    117             <div id="hunspell_options">
   118    118               <h2>DICTIONNAIRES DE GRAMMALECTE</h2>
   119    119               <div class="option_section" id="main_dic_box">
   120    120                   <p><input type="checkbox" id="main_dic" data-dictionary="main" checked disabled="disabled" /> <label for="main_dic">Dictionnaire principal</label></p>
   121    121                   <p class="option_description">Environ 83 000 entrées, 500 000 flexions.<br/>Ni éditable, ni désactivable.<br/>Ce dictionnaire est créé à partir du dictionnaire orthographique pour Firefox et LibreOffice, conçu sur le <a id="link_grammalecte" class="link" data-url="http://grammalecte.net/home.php?prj=fr">site de Grammalecte</a>.</p>
   122    122               </div>
   123    123               <div class="option_section" id="community_dic_box">
   124         -                <p><input type="checkbox" id="community_dic" data-dictionary="community" /> <label for="community_dic">Dictionnaire communautaire</label></p>
          124  +                <p><input type="checkbox" id="community_dic" data-dictionary="community" disabled/> <label for="community_dic">Dictionnaire communautaire</label></p>
   125    125                   <p class="option_description">Ce dictionnaire est créé et édité via l’éditeur lexical et est sauvegardé sur un serveur en ligne accessible à tous les membres.</p>
   126    126                   <div class="button_row">
   127         -                  <div class="dic_button" id="dic_community_button">Éditer</div>
   128         -                  <div class="dic_button" id="dictionaries_button">Dictionnaires en ligne</div>
          127  +                  <!--<div class="dic_button" id="dic_community_button">Éditer</div>
          128  +                  <div class="dic_button" id="dictionaries_button">Dictionnaires en ligne</div>-->
   129    129                   </div>
   130    130               </div>
   131    131               <div class="option_section" id="personal_dic_box">
   132    132                   <p><input type="checkbox" id="personal_dic" data-dictionary="personal" /> <label for="personal_dic">Dictionnaire personnel</label></p>
   133    133                   <p class="option_description">Ce dictionnaire est créé et édité via l’éditeur lexical et n’est pas partagé.</p>
   134    134                   <div class="button_row">
   135    135                     <div class="dic_button" id="dic_personal_button">Éditer</div>

Changes to gc_lang/fr/webext/panel/main.js.

    77     77                       dParam: {},
    78     78                       dInfo: {}
    79     79                   });
    80     80               }
    81     81               else if (xElem.id == "dictionaries_button") {
    82     82                   browser.runtime.sendMessage({
    83     83                       sCommand: "openDictionaries",
    84         -                    dParam: { "dictionary": "__community__"},
           84  +                    dParam: {},
    85     85                       dInfo: {}
    86     86                   });
    87     87               }
    88     88               else if (xElem.id == "dic_community_button") {
    89     89                   browser.runtime.sendMessage({
    90     90                       sCommand: "openLexiconEditor",
    91     91                       dParam: { "dictionary": "__community__"},