Pas de langue française dans Gramps 6 installé depuis Flatpak

Bonjour,
Je viens de mettre à jour Gramps en v6.0.0 en format flatpak (depuis https://flathub.org/apps/org.gramps_project.Gramps sous kubuntu 24.04.

Et il est uniquement en anglais.

Auparavant avec la version 5.2, également en flatpak et sous le même OS, j’avais bien le français dans gramps.

Je ne pense pas que cela vienne de mon système car un autre logiciel en flatpak est bien en français.

Voyez-vous comment avoir Gramps 6 en français? ou est ce que le français n’aurait pas encore été intégré dans le paquet flatpak?

Merci pour votre aide!

Bonjour,
Français de France?
$ locale

Oui français de france, voici ce que retourne locale:

LANG=fr_FR.UTF-8
LANGUAGE=
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=

From Perplexity.ai :

The command flatpak info org.gramps_project.Gramps.Locale will list all locales included in the Gramps Flatpak package. Specifically, it will display the subdirectories (e.g., /en, /fr, etc.) that indicate which language data is available for the application. This allows you to verify whether the French locale (/fr) is included.

To check if the Gramps Flatpak includes the French locale:

Run the following command:

bash

flatpak info org.gramps_project.Gramps.Locale

Example Output:

The output might look like this:

text

ID: org.gramps_project.Gramps.Locale
Ref: runtime/org.gramps_project.Gramps.Locale/x86_64/stable
Arch: x86_64
Branch: stable
Origin: flathub
Collection: org.flathub.Stable
Installation: system
Installed: 120 kB
Commit: <commit-hash>
Parent: <parent-commit>
Subject: Update Gramps to latest release
Date: <date>
Subdirectories: /en,/fr,/de,/es

Here, the Subdirectories field lists all available locales. If /fr is present, it means the French locale is included.

Additional Notes:

  • If /fr is missing, it could indicate that the Flatpak build did not include French localization files. This might be due to a misconfiguration during packaging (e.g., not enabling separate-locales: false in the Flatpak manifest).
  • If /fr is present but the application does not display in French, ensure your system’s locale settings are correct (e.g., LANG=fr_FR.UTF-8) and that Flatpak is configured to prioritize French with:

bash

flatpak config --set languages 'fr;en'

Citations:

  1. Some Flatpak apps do not display the right Locale/Language on ubuntu 22.04 - Ask Ubuntu
  2. How to install additional spell check dictionaries for Flatpak apps | Ctrl blog
  3. What command from the appstream workflow enables localizations? - Flathub Discourse
  4. Ubuntu Manpage: flatpak-metadata - Information about an application or runtime
  5. Reddit - The heart of the internet
  6. Howto:Change the language of reports - Gramps
  7. How do flatpak locales work? - Fedora Discussion
  8. Using different language for application is magic · Issue #1504 · flatpak/flatpak · GitHub

Answer from Perplexity: https://www.perplexity.ai/search/as-an-expert-in-the-flatpak-in-wK94Ya92QKeM8HjSobFJ5Q?utm_source=copy_output

@S.Mackay

J’ai réussi à avoir le français dans gramps 6.
Pour info, voir [Bug]: Flatpak apps can not launch in different language · Issue #5536 · flatpak/flatpak · GitHub

  1. J’ai fait une config qui me manquait, indiqué ici https://flathub.org/setup/Kubuntu:
    sudo apt install kde-config-flatpak
  2. Comme indiqué par @emyoulation, j’ai fait flatpak config --set languages 'fr;en'
  3. Et finalement flatpak update

Merci pour vos réponses qui m’ont aidé à trouver!

1 Like

Vueillez excuser mon mauvaiz francais:
separate-locales: false est la line 8 du manifeste flatpak pour Gramps 6 org.gramps_project.Gramps/org.gramps_project.Gramps.yml at master · flathub/org.gramps_project.Gramps · GitHub . Ce n’a pas change depuis Gramps 5.2, mais nous l’modifie il a quelques annees depuis vioux flatpak archives dans otra lingues a Releases · gramps-project/flatpak · GitHub . Je ne sais pas pourquoi parametres regionaux echoue dans cette instance. Le parametres regionaux echoue dans Gramps 6 flatpak puor quelqu’un d’autre?

(what I am trying to say in my native language, I don’t fully trust Google Translate so I don’t rely on it)
Please excuse my poor French:
separate-locales: false is set on line 8 of the Gramps 6 flatpak org.gramps_project.Gramps/org.gramps_project.Gramps.yml at master · flathub/org.gramps_project.Gramps · GitHub . This did not change from Gramps 5.2, but we modified it a couple years ago to make the old flatpak archives work in other languages at Releases · gramps-project/flatpak · GitHub . I don’t know why the Locale setting failed in this case. Has the Locale setting failed in the Gramps 6 flatpak for anyone else?

1 Like

:france: (Google translate)
D’après ce que j’ai lu dans ce fil de discussion, il semble que le Gramps Flatpak était bien.

Cependant, la configuration de l’environnement Flatpak pour Kubuntu nécessitait une modification. Le français était alors la langue préférée (au lieu de l’anglais) pour une installation bilingue.

:us:
From my reading of this thread, it appears that the Gramps Flatpak was fine.

However, the (Flatpak environment) configuration for Kubuntu needed a modification. That needed French as the preferred language (instead of English) in a bilingual install.

:france: (Google Translate)
Ce type de problème avec les paramètres régionaux est exactement ce que je voulais voir discuté.

Le wiki ne fournit pas de bons outils ni de workflows clairs pour corriger ou ajuster les paramètres régionaux. Dans de nombreux cas, les paramètres régionaux ne sont même pas mentionnés.

Souligner ces problèmes est la seule manière d’améliorer le wiki.

:us:
This type of problem with locale settings is exactly what I hoped to see discussed.

The wiki does not provide good tools or clear workflows for fixing or adjusting locale settings. In many cases, locales are not even mentioned.

Pointing out these issues is the only way to improve the wiki.

Not tested…

$ flatpak config
languages: *unset* (default: fr)
extra-languages: *unset*
$ flatpak install flathub org.gramps_project.Gramps
 1.     org.freedesktop.Platform.GL.Debug.default         24.08             i         flathub        < 551,3 MB
 2.     org.freedesktop.Platform.GL.Debug.default         24.08extra        i         flathub        < 551,3 MB
 3.     org.freedesktop.Platform.GL.default               24.08             i         flathub        < 156,8 MB
 4.     org.freedesktop.Platform.GL.default               24.08extra        i         flathub        < 156,8 MB
 5.     org.freedesktop.Platform.openh264                 2.5.1             i         flathub        < 971,4 kB
 6.     org.gnome.Platform.Locale                         48                i         flathub        < 387,1 MB (partial)
 7.     org.gtk.Gtk3theme.elementary                      3.22              i         flathub          < 1,3 MB
 8.     org.gnome.Platform                                48                i         flathub        < 399,2 MB
 9.     org.gramps_project.Gramps                         stable            i         flathub         < 74,9 MB
Proceed with these changes to the system installation? [Y/n]: n

Il y a aussi des applications graphiques permettant de vérifier et modifier sa configuration flatpak.

Bonjour,

Sous Debian avec Gnome, je n’ai pas eu besoin d’installer le paquet concernant KDE, c’est à dire qu’il ne m’a pas été nécessaire de saisir la commande sudo apt install kde-config-flatpak. j’ai simplement fait les étapes 2 et 3.

C’est une simple info pour d’autres utilisateurs qui sont sous Gnome.

I was a bit impatient for awaiting the snap update for ubuntu, so I installed Gramps 6.0.x now with flatpak, using:

flatpak install flathub org.gramps_project.Gramps

This all works fine, it has even updated the default application shortcut, so instead of Gramps 5.x now Gramps 6.x is running.

However - Gramps flatpak has only English installed, I do not see any subfolders for alternative languages. Verified with this command:

flatpak info org.gramps_project.Gramps

Also, by default, flatpak only “knows about” english, when I run this command:

flatpak config
languages: unset (default: en)
extra-languages: unset

My question is: How can I install alternative languages for Gramps 6.x flatpak? Is there a command available that can install the Dutch language and how can I then configure to load this language when running Gramps 6?

Did you try setting the preferred language as not english as shown in the ‘solution’

I can configure flatpak to have another language tag:

flatpak config --set extra-languages nl_NL.UTF-8
$ flatpak config
languages: unset (default: en;nl)
extra-languages: nl_NL.UTF-8

But, I think the problem is that the installed gramps does not have a /nl subfolder, that is, no alternative languages are actually installed with the flatpak for 6.0.3

But is that what the solution says?

It looks like it says to set nl as the primary language and then update the install.

I think so.

I relooked at the solution, translated the french text and tried to redo the steps.

sudo apt install kde-config-flatpak

Not entirely sure what language code is the Dutch one, but this one seems to work:

flatpak config --set languages “nl;nl”

validate what was set:

flatpak config
languages: nl;nl (default: en;nl)
extra-languages: nl_NL.UTF-8

then:

flatpak update

and just to be sure, a reinstall of the referenced flatpak Gramps for 6.0.3:

flatpak install flathub org.gramps_project.Gramps --reinstall

then run gramps and look at the about window:

Still seeing english menus and I now also see the LANG variable set to en_GB.UTF-8, which is probably very important as well… Is there a way to update the “gramps” startup LANG variable for when gramps starts with flatpak?

After looking into the Snap package store I found that I could install version 6.0.3 from snap, instead of flatpak, so I did. Not sure how that is possible on Ubuntu, but it is visible:

So, have first uninstalled the flatpak version, and then installed this gramps version.

As you can see in the picture, I can not “Open” the snap package as the button is greyed out. However, in ubuntu we can still launch the app via a bash command, so created this bash script.

~/bin/grampsstart
#!/bin/sh
export LANGUAGE=nl_NL.UTF-8
LANGUAGE=nl_NL.UTF-8 gramps

as gramps is a snap package (as found with “which”)

which gramps
/snap/bin/gramps

It now starts up properly, and also with the wanted dutch language.

The reason I always need to pass that variable is that I prefer running the operating system (Ubuntu) in the default English version instead of Dutch, so I have to tell the application itself whenever I want to run it in Dutch locale version, like with Gramps :slight_smile:

I guess others can try the same with the language of their choice, just replace the LANGUAGE variable above with an appropriate one.

Anyway, not sure how it’s possible that 6.0.3 is already available as snap, but my problem seems to be solved.