BoboTiG / ebook-reader-dict

Finally decent dictionaries based on Wiktionary for your beloved eBook reader.
http://www.tiger-222.fr/?d=2020/04/17/22/14/21-un-dictionnaire-alternatif-et-complet-pour-votre-liseuse
MIT License
395 stars 21 forks source link

[FR] Fix support for "laé" template #2046

Closed BoboTiG closed 3 months ago

BoboTiG commented 4 months ago

Wikicode:

{{lien-ancre-étym|fr|adj-pos}} 

Output:

  File "lang/fr/template_handlers.py", line 732, in render_lae
    phrase = labels[parts[1]] if len(parts) > 1 else ""
             ~~~~~~^^^^^^^^^^
KeyError: 'adj-pos'

Expected:

<i>(Adjectif possessif)</i>

Model link, if any: https://fr.wiktionary.org/wiki/Mod%C3%A8le:la%C3%A9