# Correcteur d’orthographe dans les notes

**URL:** <https://gramps.discourse.group/t/correcteur-d-orthographe-dans-les-notes/5071>\
**Category:** Français (French)\
**Created:** [March 7, 2024, 5:39am UTC](https://gramps.discourse.group/t/correcteur-d-orthographe-dans-les-notes/5071 "2024-03-07T05:39:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhmesse](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/bhmesse/32/7824_2.png) [@Bhmesse](https://gramps.discourse.group/u/Bhmesse)\
**Post date:** [March 7, 2024, 5:39am UTC](https://gramps.discourse.group/t/correcteur-d-orthographe-dans-les-notes/5071/1 "2024-03-07T05:39:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bjc49](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/bjc49/32/316_2.png) [@bjc49](https://gramps.discourse.group/u/bjc49)\
**Post date:** [March 7, 2024, 6:41am UTC](https://gramps.discourse.group/t/correcteur-d-orthographe-dans-les-notes/5071/2 "2024-03-07T06:41:14Z")

</div>

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

 ![1](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/9/93615166afd617a26dbdc101b732a5ee960ef1d0.png)  
 ![2](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/6/66a246a28f11648ca174c6d4fc85dba9e03b49a9.png)

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [March 7, 2024, 2:27pm UTC](https://gramps.discourse.group/t/correcteur-d-orthographe-dans-les-notes/5071/3 "2024-03-07T14:27:57Z")

</div>

This is an error in the preprequisites checker. In v5.2, we use GSpell rather than GtkSpell. See PR [#1450](https://github.com/gramps-project/gramps/pull/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`.

---

<div class="post-metadata">

**Author:** ![Bhmesse](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/bhmesse/32/7824_2.png) [@Bhmesse](https://gramps.discourse.group/u/Bhmesse)\
**Post date:** [March 7, 2024, 7:12pm UTC](https://gramps.discourse.group/t/correcteur-d-orthographe-dans-les-notes/5071/4 "2024-03-07T19:12:21Z")

</div>

Merci pour votre réponse  
Patrick

---

<div class="post-metadata">

**Author:** ![Bhmesse](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/bhmesse/32/7824_2.png) [@Bhmesse](https://gramps.discourse.group/u/Bhmesse)\
**Post date:** [May 9, 2025, 11:48am UTC](https://gramps.discourse.group/t/correcteur-d-orthographe-dans-les-notes/5071/5 "2025-05-09T11:48:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![manurob37](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/manurob37/32/9912_2.png) [@manurob37](https://gramps.discourse.group/u/manurob37)\
**Post date:** [September 26, 2026, 5:55pm UTC](https://gramps.discourse.group/t/correcteur-d-orthographe-dans-les-notes/5071/6 "2026-09-26T17:55:07Z")

</div>

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](https://github.com/gramps-project/gramps/pull/1450): Gramps locale is set to “fr”.

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/7/751265d4fae4523857ecdda6d467d718b4333a11.png)

and the dictionary is “fr\_FR”.

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/4/46a1c5ad91581173678b291489a303f7eb47cdda.png)

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”.

```python
    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:

```python
        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.
