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: lo, trunk
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    418               self.xNumDic.Label = str(self.oPersonalDicJSON["nEntry"])
   419    419               self.xDateDic.Label = self.oPersonalDicJSON["sDate"]
   420    420           else:
   421    421               self.xOptionNode.setPropertyValue("personal_dic", "")
   422    422               self.xSettingNode.commitChanges()
   423    423               self.xNumDic.Label = "0"
   424    424               self.xDateDic.Label = self.dUI.get("void", "#err")
          425  +        MessageBox(self.xDocument, self.dUI.get('save_message', "#err"), self.dUI.get('save_title', "#err"))
   425    426   
   426    427       def exportDictionary (self):
   427    428           try:
   428    429               spfExported = os.path.join(os.path.expanduser("~"), "fr.personal.json")    
   429    430               sJSON = self.xOptionNode.getPropertyValue("personal_dic")
   430    431               if sJSON:
   431    432                   with open(spfExported, "w", encoding="utf-8") as hDst:

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

    63     63           "delete_button": "Supprimer la sélection",
    64     64           "save_button": "Enregistrer",
    65     65   
    66     66           # Dictionary
    67     67           "dictionary_section": "Dictionnaire personnel",
    68     68           "save_date_label": "Date d’enregistrement :",
    69     69           "num_of_entries_label": "Nombre d’entrées :",
           70  +        "save_title": "Enregistrement du dictionnaire",
           71  +        "save_message": "Enregistrement fait.\nCe nouveau dictionnaire ne sera pris en compte qu’au redémarrage de LibreOffice.",
    70     72           "import_button": "Importer",
    71     73           "import_title": "Importation du dictionnaire",
    72     74           "export_button": "Exporter",
    73     75           "export_title": "Exportation du dictionnaire",
    74     76           "export_message": "Fichier exporté : ‹%s›",
    75     77           "empty_dictionary": "Le dictionnaire est vide. Aucun fichier créé.",
    76     78           "file_not_found": "Importation du fichier ‹%s›.\nCe fichier ne semble pas exister.",
................................................................................
   145    147           "delete_button": "Delete selection",
   146    148           "save_button": "Save",
   147    149   
   148    150           # Dictionary
   149    151           "dictionary_section": "Dictionnaire personnel",
   150    152           "save_date_label": "Save date:",
   151    153           "num_of_entries_label": "Number of entries:",
          154  +        "save_title": "Saving dictionary",
          155  +        "save_message": "Saving done.\nThis new dictionary will be loaded after LibreOffice restart.",
   152    156           "import_button": "Import",
   153    157           "import_title": "Import dictionary",
   154    158           "export_button": "Export",
   155    159           "export_title": "Export dictionary",
   156    160           "export_message": "Exported file: ‹%s›",
   157    161           "empty_dictionary": "The dictionary is empty. No file created.",
   158    162           "file_not_found": "File import: ‹%s›.\nThis file doesn’t seem to exist.",