Index: gc_lang/fr/webext/panel/lex_editor.html ================================================================== --- gc_lang/fr/webext/panel/lex_editor.html +++ gc_lang/fr/webext/panel/lex_editor.html @@ -22,11 +22,11 @@
[]
-
0 entrées
+
[rien]
Exporter
@@ -41,11 +41,11 @@
- Lexique · 0 entrées Enregistrer + Lexique · [rien] Enregistrer
Ajout
Recherche
Informations
Index: gc_lang/fr/webext/panel/lex_editor.js ================================================================== --- gc_lang/fr/webext/panel/lex_editor.js +++ gc_lang/fr/webext/panel/lex_editor.js @@ -115,11 +115,11 @@ this.sNodeId = sNodeId; this.xTable = document.getElementById(sNodeId); this.nColumn = lColumn.length; this.lColumn = lColumn; this.xProgressBar = document.getElementById(sProgressBarId); - this.xNumEntry = document.getElementById(sResultId); + this.xNumEntry = (sResultId) ? document.getElementById(sResultId) : null; this.iEntryIndex = 0; this.lEntry = []; this.nEntry = 0; this.bDeleteButtons = bDeleteButtons; this._createHeader(); @@ -173,11 +173,11 @@ this.showEntryNumber(); } showEntryNumber () { if (this.xNumEntry) { - this.xNumEntry.textContent = this.nEntry; + 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 }); @@ -726,11 +726,11 @@ oDictHandler.saveDictionary(this.sName, null); } }, setDictData: function (nEntries, sDate) { - document.getElementById("dic_num_entries").textContent = nEntries; + 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"); @@ -833,11 +833,11 @@ } 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", "search_num_entries", false); +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();