Grammalecte  Check-in [d7da56eb82]

Overview
Comment:[lo] Lexicon editor: fix message when exporting dictionary
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | lo
Files: files | file ages | folders
SHA3-256: d7da56eb82a46f3b9a0477e7736879abf54bacb040ca7c110f84ef0fcbc16ec7
User & Date: olr on 2021-03-04 18:06:44
Other Links: manifest | tags
Context
2021-03-04
18:19
[lo] Lexicon editor: fix several issues, word count and message error check-in: f604501c2d user: olr tags: trunk, lo
18:06
[lo] Lexicon editor: fix message when exporting dictionary check-in: d7da56eb82 user: olr tags: trunk, lo
18:05
[fr] ajustements check-in: 691fdf0039 user: olr tags: trunk, fr
Changes

Modified gc_lang/fr/oxt/DictOptions/LexiconEditor.py from [eb9da137a5] to [827d8362b3].

475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
                if platform.system() != "Windows":
                    spfExported = "/" + spfExported
                #spfExported = os.path.join(os.path.expanduser("~"), "fr.personal.json")
                sJSON = self.xOptionNode.getPropertyValue("personal_dic")
                if sJSON:
                    with open(spfExported, "w", encoding="utf-8") as hDst:
                        hDst.write(sJSON)
                    sMessage = ui.get('export_message', "#err_msg: %s") % spfExported
                else:
                    sMessage = ui.get('empty_dictionary')
                MessageBox(self.xDocument, sMessage, ui.get('export_title'))
        except:
            sMessage = traceback.format_exc()
            MessageBox(self.xDocument, sMessage, ui.get('export_title'), ERRORBOX)








|







475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
                if platform.system() != "Windows":
                    spfExported = "/" + spfExported
                #spfExported = os.path.join(os.path.expanduser("~"), "fr.personal.json")
                sJSON = self.xOptionNode.getPropertyValue("personal_dic")
                if sJSON:
                    with open(spfExported, "w", encoding="utf-8") as hDst:
                        hDst.write(sJSON)
                    sMessage = ui.get('export_message') % spfExported
                else:
                    sMessage = ui.get('empty_dictionary')
                MessageBox(self.xDocument, sMessage, ui.get('export_title'))
        except:
            sMessage = traceback.format_exc()
            MessageBox(self.xDocument, sMessage, ui.get('export_title'), ERRORBOX)