Overview
Comment: | [lo] lexicon editor: update + translations |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | lo |
Files: | files | file ages | folders |
SHA3-256: |
b9c72f6c5f93e755f5fbcd2b4df876cc |
User & Date: | olr on 2018-04-14 19:38:35 |
Other Links: | manifest | tags |
Context
2018-04-14
| ||
19:42 | [fx] CSS: <mark> protect against font-style modification check-in: 99794a188b user: olr tags: trunk, fx | |
19:38 | [lo] lexicon editor: update + translations check-in: b9c72f6c5f user: olr tags: trunk, lo | |
17:31 | [lo][bug] lexicon editor: USERPROFILE unknown on Linux check-in: 507372a50d user: olr tags: trunk, lo | |
Changes
Modified gc_lang/fr/oxt/DictOptions/LexiconEditor.py from [1cf16e149d] to [7c6e6162cd].
︙ | ︙ | |||
381 382 383 384 385 386 387 388 389 390 391 392 393 394 | #xFilePicker.setDisplayDirectory("") #xFilePicker.setMultiSelectionMode(False) #nResult = xFilePicker.execute() #if nResult == 1: # lFile = xFilePicker.getSelectedFiles() # lFile = xFilePicker.getFiles() # print(lFile) # workaround spfImported = os.path.join(os.path.expanduser("~"), "fr.personal.json") if os.path.isfile(spfImported): with open(spfImported, "r", encoding="utf-8") as hDst: sJSON = hDst.read() try: sTest = json.loads(sJSON) | > | 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 | #xFilePicker.setDisplayDirectory("") #xFilePicker.setMultiSelectionMode(False) #nResult = xFilePicker.execute() #if nResult == 1: # lFile = xFilePicker.getSelectedFiles() # lFile = xFilePicker.getFiles() # print(lFile) # MessageBox(self.xDocument, "File(s): " + str(lFile), "DEBUG", INFOBOX) # workaround spfImported = os.path.join(os.path.expanduser("~"), "fr.personal.json") if os.path.isfile(spfImported): with open(spfImported, "r", encoding="utf-8") as hDst: sJSON = hDst.read() try: sTest = json.loads(sJSON) |
︙ | ︙ |
Modified gc_lang/fr/oxt/DictOptions/lxe_strings.py from [f0621c5777] to [1708b0e9c7].
︙ | ︙ | |||
51 52 53 54 55 56 57 | "other": "Autre", "flexion": "Flexion", "tags": "Étiquettes", # Lexicon "new_section": "Mots générés", "lexicon_section": "Votre lexique", | < | 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | "other": "Autre", "flexion": "Flexion", "tags": "Étiquettes", # Lexicon "new_section": "Mots générés", "lexicon_section": "Votre lexique", "lex_flex": "Flexions", "lex_lemma": "Lemmes", "lex_tags": "Étiquettes", "add_button": "Ajouter au lexique", "delete_button": "Supprimer la sélection", "save_button": "Enregistrer", |
︙ | ︙ | |||
85 86 87 88 89 90 91 | ## "verb_information": "" }, # Traduction délibérément limitée "en": { "title": "Grammalecte · Lexicon editor", | | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | ## "verb_information": "" }, # Traduction délibérément limitée "en": { "title": "Grammalecte · Lexicon editor", # Ajout "add_section": "New word (lemma)", "lemma": "Lemma", "search_button": "Search", "information_button": "<i>", # catégories "common_name": "Nom commun", "nom_adj": "Nom et adjectif", "nom": "Nom", "adj": "Adjectif", "alt_lemma": "[optionnel] Autre forme (masculine, féminine, variante, etc.)", "proper_name": "Nom propre", "M1": "Prénom", "M2": "Patronyme", "MP": "Autre", "gender": "Genre", "epi": "épicène", "mas": "masculin", "fem": "féminin", "plural": "Pluriel", "-s": "pluriel en ·s", "-x": "pluriel en ·x", "inv": "invariable", "verb": "Verbe", "v_i": "intransitif", "v_t": "transitif", "v_n": "transitif indirect", "v_p": "pronominal", "v_m": "impersonnel", "aux": "Auxiliaire au passé composé", "v_ae": "être", "v_aa": "avoir", "v_pp": "Participe passé invariable", "v_pattern": "Verbe modèle [optionnel]", "adverb": "Adverbe", "other": "Other", "flexion": "Flexion", "tags": "Tags", # Lexicon "new_section": "Generated words", "lexicon_section": "Your lexicon", "lex_flex": "Flexions", "lex_lemma": "Lemmas", "lex_tags": "Tags", "add_button": "Add to the lexicon", "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.", "wrong_json": "The file ‹%s› is not a valid JSON file.", "load_title": "Dictionary loading.", "not_loaded": "The file couln’t be loaded.\n", "void": "[void]", # Close button "close_button": "Close", ## "verb_information": "" }, } |
Modified gc_lang/fr/oxt/DictOptions/sw_strings.py from [50044502f8] to [bd5a9a1a9f].
︙ | ︙ | |||
29 30 31 32 33 34 35 36 37 38 | "regex_error_flexion": "L’expression régulière du champ ‹Flexion› est erronée.", "regex_error_tags": "L’expression régulière du champ ‹Étiquettes› est erronée." }, "en": { "title": "Grammalecte · Search and informations", "close_button": "Close", }, } | > > > > > > > > > > > > > > > > > > > > > > | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | "regex_error_flexion": "L’expression régulière du champ ‹Flexion› est erronée.", "regex_error_tags": "L’expression régulière du champ ‹Étiquettes› est erronée." }, "en": { "title": "Grammalecte · Search and informations", "search_section": "Search", "similar_search_section": "Similar words", "similar_search_button": "Search", "regex_search_section": "Regular expressions", "flexion": "Flexion", "tags": "Tags", "regex_search_button": "Search", "result_warning": "Search via regular expressions can generate a huge amount of results. Only the first 2000 occurrences found will be displayed. Search may be long as the full word graph, which contains 500,000 flexions, will be parsed if required.", "result_section": "Results", "res_flexion": "Flexions", "res_lemma": "Lemmas", "res_tags": "Tags", "close_button": "Close", "error": "Error", "regex_error_flexion": "The regular expression in field ‹Flexion› is wrong.", "regex_error_tags": "The regular expression in field ‹Tags› is wrong." "close_button": "Close", }, } |
Modified gc_lang/fr/oxt/DictOptions/ti_strings.py from [bdcc06a6c3] to [0b16e6dad2].
1 2 3 4 5 6 7 8 9 10 11 12 | def getUI (sLang): if sLang in dStrings: return dStrings[sLang] return dStrings["fr"] dStrings = { "fr": { "title": "Grammalecte · Informations", "information_section": "Informations", "save": "Enregistrement", | | | < > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | def getUI (sLang): if sLang in dStrings: return dStrings[sLang] return dStrings["fr"] dStrings = { "fr": { "title": "Grammalecte · Informations", "information_section": "Informations", "save": "Enregistrement", "save_desc": "Les modifications apportées au lexique ne sont enregistrées dans le dictionnaire qu’au moment où vous cliquez sur ‹Enregistrer›.", "duplicates": "Doublons", "duplicates_desc": "Il est inutile de purger votre lexique des doublons éventuels. Les doublons sont automatiquement supprimés lors de la création du dictionnaire.", "compilation": "Compilation du dictionnaire", "compilation_desc": "Le dictionnaire est compilé comme un graphe de mots compressé sous la forme d’une chaîne binaire dans un fichier JSON. Cette opération peut prendre du temps et consommer beaucoup de mémoire si votre lexique contient plusieurs dizaines de milliers d’entrées.", "warning": "Avertissement", "warning_desc": "Il est déconseillé d’utiliser la catégorie ‹Autre› pour générer autre chose que des noms, des adjectifs, des noms propres, des verbes et des adverbes. Il n’y a aucune garantie que les étiquettes pour les autres catégories, notamment les mots grammaticaux, ne changeront pas.", "tags_section": "Signification des étiquettes", "tags": "Étiquettes", "meaning": "Signification", "close_button": "Fermer", }, "en": { "title": "Grammalecte · Informations", "information_section": "Informations", "save": "Save", "save_desc": "Modifications to the lexicon are only saved in the dictionary when you click on ‹Save›.", "duplicates": "Duplicates", "duplicates_desc": "It is useless to expurgate your lexicon from duplicates. Duplicates are automatically deleted when the dictionary is created.", "compilation": "Dictionary compilation", "compilation_desc": "The dictionary is compiled as a word graph compressed as a binary string in a JSON file. This operation may be long and use a lot of memory and CPU resources if your lexicon contains several thousands of entries.", "warning": "Warning", "warning_desc": "You shouldn’t use the category ‹Other› to generate words which are not names, adjectives, proper names, verbs and adverbs. There is no garantee that tags used for other categories won’t change.", "tags_section": "Tags meaning", "tags": "Tags", "meaning": "Meaning", "close_button": "Close", }, } |