Correcteur d’orthographe dans les notes

Gramps 5.2 sous wind10
Bonjour,
Implicitement le correcteur d’orthographe dans les notes est en langue anglaise. On peut facilement le basculer en français par le bouton de choix, ça c’est ok.
Mais, systématiquement à la prochaine ouverture de la note ou à la création d’une autre note, il est repassé en anglais.
Comment faire pour qu’il reste implicitement en langue française ?
Merci
Patrick

Malheureusement je ne ne connais pas windows
Je suis sur linux KDE neon plasma 6
Le gramplet “Prerequis Checker” pourra peut être te renseigner sur les logiciels manquants
En linux j’ai du installer deux paquets en python3 pour que cela fonctionne
A tout hasard voici 2 copies d’écran


This is an error in the preprequisites checker. In v5.2, we use GSpell rather than GtkSpell. See PR #1450.

I tested in French, but with Arch Linux not Windows.

The default language for the spell checker should be set with the environment variable LANGUAGE=fr.

Merci pour votre réponse
Patrick

Bonjour,
Je me permets de rouvrir ce sujet.
Je pensais que la version 6 de Gramps résoudrait définitivement ce défaut. Mais il n’en est rien. Il faut resélection la langue française à chaque ouverture de la note pour avoir le correcteur orthographique en français.
Est-ce que j’ai raté quelque chose ?
Je suis sous windows 10, gramps 6 0 1 et en français.
Merci
Patrick

Hello,

September 2026 and the issue persists in Gramps AIO64-6.0.8–1 for French users on Windows 11.

The spell checker is still set to English by default when opening the note editor.

The core issue remains the one described in PR #1450: Gramps locale is set to “fr”.

and the dictionary is “fr_FR”.

The test performed in the file C:\Program Files\GrampsAIO64-6.0.8\gramps\gui\spell.py relies on Gspell and returns “None” because “fr” does not match “fr_FR”.

    locale_code = glocale.locale_code()
    gspell_language = None
    if locale_code is not None:
        gspell_language = Gspell.language_lookup(locale_code[:5])
        if gspell_language is None:
            gspell_language = Gspell.language_lookup(locale_code[:2])
    checker = Gspell.Checker.new(gspell_language)

Without any pretension other than helping myself, I patched the spell.py file as follows:

        locale_code = glocale.locale_code()
        gspell_language = None
        if locale_code is not None:
            gspell_language = Gspell.language_lookup(locale_code[:5])
            if gspell_language is None:
                gspell_language = Gspell.language_lookup(locale_code[:2])
                #begin ugly patch for French Windows users
                #as gramps locale fr does not match the fr_FR dictionary
                #need to compare language codes
                #and return the first matching item as a fallback
                if gspell_language is None:
                    gspell_languages = Gspell.Language.get_available()
                    for avail_lang in gspell_languages:
                        if avail_lang.get_code()[:2] == locale_code[:2]:
                            gspell_language = avail_lang
                            break
                #end ugly patch for French Windows users
        checker = Gspell.Checker.new(gspell_language)

After restarting Gramps, it works for my specific case; the spell checker is now set to French (France) by default.

I am sharing this with the community, and I leave it to the experts to resolve this bug properly.