Overview
Comment: | [lo] lexicon editor: import dictionary |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | lo | multid |
Files: | files | file ages | folders |
SHA3-256: |
635fcc243bfd87953ce1b2511f844393 |
User & Date: | olr on 2018-03-28 10:53:07 |
Other Links: | branch diff | manifest | tags |
Context
2018-03-28
| ||
13:15 | [tb] lexicon editor: import dictionary check-in: 81f4f65958 user: olr tags: tb, multid | |
10:53 | [lo] lexicon editor: import dictionary check-in: 635fcc243b user: olr tags: lo, multid | |
08:56 | [lo] lexicon editor: strings update check-in: 79e0f99030 user: olr tags: lo, multid | |
Changes
Modified gc_lang/fr/oxt/DictOptions/LexiconEditor.py from [fa7335a6fb] to [2bb83eccad].
︙ | |||
23 24 25 26 27 28 29 | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | - + | from com.sun.star.task import XJobExecutor from com.sun.star.awt import XActionListener from com.sun.star.awt import XKeyListener from com.sun.star.awt.MessageBoxButtons import BUTTONS_OK # BUTTONS_OK, BUTTONS_OK_CANCEL, BUTTONS_YES_NO, BUTTONS_YES_NO_CANCEL, BUTTONS_RETRY_CANCEL, BUTTONS_ABORT_IGNORE_RETRY # DEFAULT_BUTTON_OK, DEFAULT_BUTTON_CANCEL, DEFAULT_BUTTON_RETRY, DEFAULT_BUTTON_YES, DEFAULT_BUTTON_NO, DEFAULT_BUTTON_IGNORE |
︙ | |||
151 152 153 154 155 156 157 | 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | + - + | #### Dictionary section self._addWidget("dictionary_section", 'FixedLine', nX1, nY0, 180, nHeight, Label = self.dUI.get("dictionary_section", "#err"), FontDescriptor = xFDTitle, TextColor = 0x000088) self._addWidget("save_date_label", 'FixedText', nXB, nY0+2, 80, nHeight, Label = self.dUI.get("save_date_label", "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x000088) self._addWidget("num_of_entries_label2", 'FixedText', nXC, nY0+2, 65, nHeight, Label = self.dUI.get("num_of_entries_label", "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x000088) self.xDateDic = self._addWidget("save_date", 'FixedText', nXB+85, nY0+2, 75, nHeight, Label = self.dUI.get("void", "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x000088) self.xNumDic = self._addWidget("num_of_entries2", 'FixedText', nXC+70, nY0+2, 45, nHeight, Label = "0", FontDescriptor = xFDSubTitle, TextColor = 0x000088) self.xImport = self._addWidget('import_button', 'Button', self.xDialog.Width-90, nY0, 40, 12, Label = self.dUI.get('import_button', "#err"), FontDescriptor = xFDSubTitle, TextColor = 0x000055) |
︙ | |||
272 273 274 275 276 277 278 279 280 281 282 283 284 285 | 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 | + + | self.xContainer.getControl('information_button').setActionCommand('TagsInfo') self.xContainer.getControl('add_button').addActionListener(self) self.xContainer.getControl('add_button').setActionCommand('Add') self.xContainer.getControl('delete_button').addActionListener(self) self.xContainer.getControl('delete_button').setActionCommand('Delete') self.xContainer.getControl('save_button').addActionListener(self) self.xContainer.getControl('save_button').setActionCommand('Save') self.xContainer.getControl('import_button').addActionListener(self) self.xContainer.getControl('import_button').setActionCommand('Import') self.xContainer.getControl('export_button').addActionListener(self) self.xContainer.getControl('export_button').setActionCommand('Export') self.xContainer.getControl('close_button').addActionListener(self) self.xContainer.getControl('close_button').setActionCommand('Close') self.xContainer.setVisible(False) xToolkit = self.xSvMgr.createInstanceWithContext('com.sun.star.awt.ExtToolkit', self.ctx) self.xContainer.createPeer(xToolkit, None) |
︙ | |||
340 341 342 343 344 345 346 | 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 | - + + + - - - - + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | xDialog = SearchWords.SearchWords(self.ctx) xDialog.run(self.sLang, self.oPersonalDicJSON) def launchTagsInfo (self): xDialog = TagsInfo.TagsInfo(self.ctx) xDialog.run(self.sLang) |
︙ | |||
385 386 387 388 389 390 391 392 393 | 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 | + - + - - - - | sJSON = xChild.getPropertyValue("personal_dic") if sJSON: with open(spfExported, "w", encoding="utf-8") as hDst: hDst.write(sJSON) sMessage = self.dUI.get('export_message', "#err_msg: %s") % spfExported else: sMessage = self.dUI.get('empty_dictionary', "#err") MessageBox(self.xDocument, sMessage, self.dUI.get('export_title', "#err")) except: sMessage = traceback.format_exc() |
︙ |
Modified gc_lang/fr/oxt/DictOptions/lxe_strings.py from [c8eb10a5d4] to [0d97dfb001].
︙ | |||
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | + + + + + + | "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": "Le fichier ‹%s› ne semble pas exister.", "wrong_json": "Le fichier ‹%s› n’est pas un fichier JSON valide.", "load_title": "Chargement du dictionnaire.", "not_loaded": "Le fichier n’a pas pu être chargé.\n", "void": "[néant]", # Close button "close_button": "Fermer", ## "verb_information": "" |
︙ |