Overview
| Comment: | [fx] lexicon editor: adapt labels |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | fx |
| Files: | files | file ages | folders |
| SHA3-256: |
2db0f91eb2cf90168bc125195c2c237a |
| User & Date: | olr on 2019-05-23 06:21:08 |
| Other Links: | manifest | tags |
Context
|
2019-05-23
| ||
| 10:57 | [fr] ajustements check-in: d04bf88afa user: olr tags: trunk, fr | |
| 06:21 | [fx] lexicon editor: adapt labels check-in: 2db0f91eb2 user: olr tags: trunk, fx | |
| 06:03 | [fx] lexicon editor: remove cruft check-in: 53f1e213c5 user: olr tags: trunk, fx | |
Changes
Modified gc_lang/fr/webext/panel/lex_editor.html from [3be21fe839] to [70c5533f4c].
| ︙ | ︙ | |||
20 21 22 23 24 25 26 |
<option value="__personal__">__personnel__</option>
</select>
<!--<div id="new_dictionary_button" title="Créer un dictionnaire partagé">+</div>-->
<div id="delete_dictionary_button" title="Supprimer ce dictionnaire">−</div>
</div>
<div>[<span id="dic_save_date">—</span>]</div>
| | | | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
<option value="__personal__">__personnel__</option>
</select>
<!--<div id="new_dictionary_button" title="Créer un dictionnaire partagé">+</div>-->
<div id="delete_dictionary_button" title="Supprimer ce dictionnaire">−</div>
</div>
<div>[<span id="dic_save_date">—</span>]</div>
<div><span id="dic_num_entries">[rien]</span> </div>
<div>
<input type="file" id="import_input" accept=".json" style="display: none;">
<label id="import_button" for="import_input">Importer</label>
</div>
<div id="export_button">Exporter</div>
</div>
<div id="new_dictionary_section" style="display: none;">
<div class="dic_container">
<div>Nouveau dictionnaire partagé</div>
<div>Nom : fr.x.<input type="text" id="new_dictionary_name" required> · Description : <input type="text" id="new_dictionary_description" required></div>
<div id="create_dictionary_button">Créer</div>
</div>
</div>
<progress id="wait_progress" value="0"></progress>
</div>
<div id="buttons" class="container">
<div id="lexicon_button" class="main_button">
Lexique · <span id="num_entries">[rien]</span> <span id="save_button">Enregistrer</span>
</div>
<div id="add_button" class="main_button">Ajout</div>
<div id="search_button" class="main_button">Recherche</div>
<div id="info_button" class="main_button">Informations</div>
</div>
<div id="add_page">
|
| ︙ | ︙ |
Modified gc_lang/fr/webext/panel/lex_editor.js from [b73a329e9e] to [a72eb5ad85].
| ︙ | ︙ | |||
113 114 115 116 117 118 119 |
constructor (sNodeId, lColumn, sProgressBarId, sResultId="", bDeleteButtons=true) {
this.sNodeId = sNodeId;
this.xTable = document.getElementById(sNodeId);
this.nColumn = lColumn.length;
this.lColumn = lColumn;
this.xProgressBar = document.getElementById(sProgressBarId);
| | | 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
constructor (sNodeId, lColumn, sProgressBarId, sResultId="", bDeleteButtons=true) {
this.sNodeId = sNodeId;
this.xTable = document.getElementById(sNodeId);
this.nColumn = lColumn.length;
this.lColumn = lColumn;
this.xProgressBar = document.getElementById(sProgressBarId);
this.xNumEntry = (sResultId) ? document.getElementById(sResultId) : null;
this.iEntryIndex = 0;
this.lEntry = [];
this.nEntry = 0;
this.bDeleteButtons = bDeleteButtons;
this._createHeader();
this.listen();
}
|
| ︙ | ︙ | |||
171 172 173 174 175 176 177 |
}
this.nEntry += lFlex.length;
this.showEntryNumber();
}
showEntryNumber () {
if (this.xNumEntry) {
| | | 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
}
this.nEntry += lFlex.length;
this.showEntryNumber();
}
showEntryNumber () {
if (this.xNumEntry) {
this.xNumEntry.textContent = this.nEntry.toString() + ((this.nEntry > 1) ? " entrées" : " entrée");
}
}
_addRow (lData) {
let xRowNode = createNode("tr", { id: this.sNodeId + "_row_" + this.iEntryIndex });
if (this.bDeleteButtons) {
xRowNode.appendChild(createNode("td", { textContent: "×", className: "delete_entry", title: "Effacer cette entrée" }, { id_entry: this.iEntryIndex }));
|
| ︙ | ︙ | |||
724 725 726 727 728 729 730 |
} else {
this.setDictData(0, "[néant]");
oDictHandler.saveDictionary(this.sName, null);
}
},
setDictData: function (nEntries, sDate) {
| | | 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 |
} else {
this.setDictData(0, "[néant]");
oDictHandler.saveDictionary(this.sName, null);
}
},
setDictData: function (nEntries, sDate) {
document.getElementById("dic_num_entries").textContent = nEntries.toString() + ((this.nEntry > 1) ? " entrées" : " entrée");
document.getElementById("dic_save_date").textContent = sDate;
if (nEntries == 0) {
hideElement("export_button");
} else {
showElement("export_button");
}
},
|
| ︙ | ︙ | |||
831 832 833 834 835 836 837 |
oTagsTable.fill(lEntry);
}
}
const oGenWordsTable = new Table("generated_words_table", ["Flexions", "Étiquettes"], "wait_progress");
const oLexiconTable = new Table("lexicon_table", ["Flexions", "Lemmes", "Étiquettes"], "wait_progress", "num_entries");
| | | 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 |
oTagsTable.fill(lEntry);
}
}
const oGenWordsTable = new Table("generated_words_table", ["Flexions", "Étiquettes"], "wait_progress");
const oLexiconTable = new Table("lexicon_table", ["Flexions", "Lemmes", "Étiquettes"], "wait_progress", "num_entries");
const oSearchTable = new Table("search_table", ["Flexions", "Lemmes", "Étiquettes"], "wait_progress", "", false);
const oTagsTable = new Table("tags_table", ["Étiquette", "Signification"], "wait_progress", "", false);
oTagsInfo.load();
oSearch.load();
oDictHandler.loadDictionaries();
oBinaryDict.listen();
oGenerator.listen();
oTabulations.listen();
oSearch.listen();
|