Index: gc_lang/fr/oxt/DictOptions/LexiconEditor.py ================================================================== --- gc_lang/fr/oxt/DictOptions/LexiconEditor.py +++ gc_lang/fr/oxt/DictOptions/LexiconEditor.py @@ -388,12 +388,12 @@ try: self.oPersonalDicJSON = json.loads(sJSON) oIBDAWG = ibdawg.IBDAWG(self.oPersonalDicJSON) for i, aEntry in enumerate(oIBDAWG.select()): xGridDataModel.addRow(i, aEntry) - self.xNumLex.Label = str(i) - self.xNumDic.Label = str(i) + self.xNumLex.Label = str(i+1) + self.xNumDic.Label = str(i+1) self.xDateDic.Label = oIBDAWG.sDate except: sMessage = ui.get('not_loaded') sMessage += traceback.format_exc() MessageBox(self.xDocument, sMessage, ui.get('load_title'), ERRORBOX) @@ -427,18 +427,18 @@ with open(spfImported, "r", encoding="utf-8") as hDst: sJSON = hDst.read() try: sTest = json.loads(sJSON) except: - sMessage = ui.get('wrong_json', "#err_msg: %s") % spfImported + sMessage = ui.get('wrong_json') % spfImported MessageBox(self.xDocument, sMessage, ui.get('import_title'), ERRORBOX) else: self.xOptionNode.setPropertyValue("personal_dic", sJSON) self.xSettingNode.commitChanges() self.loadLexicon() else: - sMessage = ui.get('file_not_found', "#err_msg: %s") % spfImported + sMessage = ui.get('file_not_found') % spfImported MessageBox(self.xDocument, sMessage, ui.get('import_title'), ERRORBOX) @_waitPointer def saveLexicon (self): xGridDataModel = self.xGridModelLex.GridDataModel