Grammalecte  Check-in [7f93786e07]

Overview
Comment:[lo] lexicon editor: message after saving the dictionary
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | lo | tbnext
Files: files | file ages | folders
SHA3-256: 7f93786e07cbc21d24a68de69d8601dc30bd0210d3797de00dd3b7d3e32e8da1
User & Date: olr on 2018-04-23 08:28:50
Other Links: branch diff | manifest | tags
Context
2018-04-23
18:01
(merge from tbnext) [lo] lexicon editor: message after saving the dictionary check-in: 162da320cc user: olr tags: trunk, lo
17:24
[fr] pt: pomme de … check-in: 0d7706183f user: olr tags: fr, tbnext
08:28
[lo] lexicon editor: message after saving the dictionary check-in: 7f93786e07 user: olr tags: lo, tbnext
2018-04-16
07:32
[tb] works Thunderbird 59+ check-in: c231a8e720 user: olr tags: tb, tbnext
Changes

Modified gc_lang/fr/oxt/DictOptions/LexiconEditor.py from [7c6e6162cd] to [a96f39e0bb].

418
419
420
421
422
423
424

425
426
427
428
429
430
431
            self.xNumDic.Label = str(self.oPersonalDicJSON["nEntry"])
            self.xDateDic.Label = self.oPersonalDicJSON["sDate"]
        else:
            self.xOptionNode.setPropertyValue("personal_dic", "")
            self.xSettingNode.commitChanges()
            self.xNumDic.Label = "0"
            self.xDateDic.Label = self.dUI.get("void", "#err")


    def exportDictionary (self):
        try:
            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:







>







418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
            self.xNumDic.Label = str(self.oPersonalDicJSON["nEntry"])
            self.xDateDic.Label = self.oPersonalDicJSON["sDate"]
        else:
            self.xOptionNode.setPropertyValue("personal_dic", "")
            self.xSettingNode.commitChanges()
            self.xNumDic.Label = "0"
            self.xDateDic.Label = self.dUI.get("void", "#err")
        MessageBox(self.xDocument, self.dUI.get('save_message', "#err"), self.dUI.get('save_title', "#err"))

    def exportDictionary (self):
        try:
            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:

Modified gc_lang/fr/oxt/DictOptions/lxe_strings.py from [1708b0e9c7] to [bbffa62753].

63
64
65
66
67
68
69


70
71
72
73
74
75
76
        "delete_button": "Supprimer la sélection",
        "save_button": "Enregistrer",

        # Dictionary
        "dictionary_section": "Dictionnaire personnel",
        "save_date_label": "Date d’enregistrement :",
        "num_of_entries_label": "Nombre d’entrées :",


        "import_button": "Importer",
        "import_title": "Importation du dictionnaire",
        "export_button": "Exporter",
        "export_title": "Exportation du dictionnaire",
        "export_message": "Fichier exporté : ‹%s›",
        "empty_dictionary": "Le dictionnaire est vide. Aucun fichier créé.",
        "file_not_found": "Importation du fichier ‹%s›.\nCe fichier ne semble pas exister.",







>
>







63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
        "delete_button": "Supprimer la sélection",
        "save_button": "Enregistrer",

        # Dictionary
        "dictionary_section": "Dictionnaire personnel",
        "save_date_label": "Date d’enregistrement :",
        "num_of_entries_label": "Nombre d’entrées :",
        "save_title": "Enregistrement du dictionnaire",
        "save_message": "Enregistrement fait.\nCe nouveau dictionnaire ne sera pris en compte qu’au redémarrage de LibreOffice.",
        "import_button": "Importer",
        "import_title": "Importation du dictionnaire",
        "export_button": "Exporter",
        "export_title": "Exportation du dictionnaire",
        "export_message": "Fichier exporté : ‹%s›",
        "empty_dictionary": "Le dictionnaire est vide. Aucun fichier créé.",
        "file_not_found": "Importation du fichier ‹%s›.\nCe fichier ne semble pas exister.",
145
146
147
148
149
150
151


152
153
154
155
156
157
158
        "delete_button": "Delete selection",
        "save_button": "Save",

        # Dictionary
        "dictionary_section": "Dictionnaire personnel",
        "save_date_label": "Save date:",
        "num_of_entries_label": "Number of entries:",


        "import_button": "Import",
        "import_title": "Import dictionary",
        "export_button": "Export",
        "export_title": "Export dictionary",
        "export_message": "Exported file: ‹%s›",
        "empty_dictionary": "The dictionary is empty. No file created.",
        "file_not_found": "File import: ‹%s›.\nThis file doesn’t seem to exist.",







>
>







147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
        "delete_button": "Delete selection",
        "save_button": "Save",

        # Dictionary
        "dictionary_section": "Dictionnaire personnel",
        "save_date_label": "Save date:",
        "num_of_entries_label": "Number of entries:",
        "save_title": "Saving dictionary",
        "save_message": "Saving done.\nThis new dictionary will be loaded after LibreOffice restart.",
        "import_button": "Import",
        "import_title": "Import dictionary",
        "export_button": "Export",
        "export_title": "Export dictionary",
        "export_message": "Exported file: ‹%s›",
        "empty_dictionary": "The dictionary is empty. No file created.",
        "file_not_found": "File import: ‹%s›.\nThis file doesn’t seem to exist.",