Grammalecte  Check-in [162da320cc]

Overview
Comment:(merge from tbnext) [lo] lexicon editor: message after saving the dictionary
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | lo
Files: files | file ages | folders
SHA3-256: 162da320cca9e4b3d762b3b6ac9734673140c081e74ff09ed52762d2954cd5f2
User & Date: olr on 2018-04-23 18:01:32
Other Links: manifest | tags
Context
2018-04-23
18:03
(merge from tbnext) [fr] pt: pomme de … check-in: 027b9aef63 user: olr tags: trunk, fr
18:01
(merge from tbnext) [lo] lexicon editor: message after saving the dictionary check-in: 162da320cc user: olr tags: trunk, lo
08:28
[lo] lexicon editor: message after saving the dictionary check-in: 7f93786e07 user: olr tags: lo, tbnext
2018-04-22
15:00
[fr] màj: accentuation des majuscules check-in: 85da41f799 user: olr tags: trunk, fr
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
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
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
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.",