Flatpak does not use translations
When installing Gtranslator as a Flatpak, the Flatpak does not use any translations.
[carmen@carmen-thinkpad files]$ flatpak info org.gnome.Gtranslator
Gtranslator - Traduki kaj allokigi aplikaĵojn kaj bibliotekojn
ID: org.gnome.Gtranslator
Ref: app/org.gnome.Gtranslator/x86_64/stable
Arch: x86_64
Branch: stable
Version: 3.32.0
License: GPL-2.0+ AND GPL-3.0+
Origin: flathub
Collection: org.flathub.Stable
Installation: user
Installed: 15,8 MB
Runtime: org.gnome.Platform/x86_64/3.32
Sdk: org.gnome.Sdk/x86_64/3.32
Commit: 18ab87b038cef6e8a8b4b0d2226d0d0bf73ed3d4f3523d84890b28ef46fbd3ca
Parent: 3e2658307187860b00275a98acdaa548498a692efd46d89bcf3c427040662074
Subject: Gtranslator 3.32.0 release (9cd852d4)
Date: 2019-03-19 09:09:59 +0000
[carmen@carmen-thinkpad files]$ flatpak info org.gnome.Gtranslator.Locale
ID: org.gnome.Gtranslator.Locale
Ref: runtime/org.gnome.Gtranslator.Locale/x86_64/stable
Arch: x86_64
Branch: stable
Origin: flathub
Collection: org.flathub.Stable
Installation: user
Installed: 27,1 kB
Commit: b9536789bec46168501c807720247a336f1d1a17446dd9ca42453cbefdc99dfd
Parent: 10a65b1edf8aa2571fba9a8d729c910816a52c1adf997dd1272ec1650b0ef9e1
Subject: Gtranslator 3.32.0 release (9cd852d4)
Date: 2019-03-19 09:10:00 +0000
Subdirectories: /eo
When I go to the correct directory, I can find the .mo files. See the following commands:
[carmen@carmen-thinkpad files]$ pwd
/home/carmen/.local/share/flatpak/runtime/org.gnome.Gtranslator.Locale/x86_64/stable/b9536789bec46168501c807720247a336f1d1a17446dd9ca42453cbefdc99dfd-eo/files
[carmen@carmen-thinkpad files]$ find . -iname '*.mo'
./eo/share/eo/LC_MESSAGES/gtksourceview-4.mo
./eo/share/eo/LC_MESSAGES/libgda-5.0.mo
./eo/share/eo/LC_MESSAGES/gtranslator.mo
But they're just not used at all. Granted, the Esperanto translations are incomplete, but even some buttons that should otherwise be translated by GTK itself (e.g., "Credits" in the About screen) aren't translated at all.
In /proc/$PID/environ, the LANG
variable appears to be set correctly.
Both the Flatpak from Flathub as well as a locally built version of Gtranslator exhibit this behaviour.
I've tried finding the cause of the issue, but I don't think I'm anywhere near well-versed enough in Flatpak to figure this out.