Created attachment 1507561 [details] Screenshot error Description of problem: When install flatpak by GNOME Software Center, it doesn't work with locale (for example Russian language). My localectl status: System Locale: LANG=ru_RU.utf8 VC Keymap: us X11 Layout: us See attachment. Steps to Reproduce: 1.Open GNOME Software 2.Add repo flathub 3.Install GIMP (for example) 4.Open GIMP (and see what locale doesn't work) Actual results: This error also in RHEL 7.6, although in Fedora 28/29 all right! Expected results: Additional info:
If install flatpak from CLI a locale work, but else use GNOME Software a locale doesn't work!
$ LANG=ru_RU flatpak run org.gnome.Builder (gnome-builder:2): Gtk-WARNING **: 14:36:00.027: Locale not supported by C library. Using the fallback 'C' locale. Gtk-Message: 14:36:00.065: Failed to load module "pk-gtk-module" Gtk-Message: 14:36:00.067: Failed to load module "pk-gtk-module"
I was testing again today, I was able to run Gimp, I tried two languages: LANG=de_DE LANG=ru_RU they worked for both the command line and from the gnome-software (gnome-software run with custom locale from cmd) The gimp was working ok. But both gnome-builder and gnome-music were still running in english with the fallback messages.
(In reply to Martin Krajnak from comment #4) > I was testing again today, I was able to run Gimp, I tried two languages: > > LANG=de_DE > LANG=ru_RU > > they worked for both the command line and from the gnome-software > (gnome-software run with custom locale from cmd) > > The gimp was working ok. But both gnome-builder and gnome-music were still > running in english with the fallback messages. Yes, but in Fedora 28/29 all work right! I'm, running gnome-software and other app without parameters in the Fedora. This bug have RHEL 7.6 too.
Sure, I am just mentioning that, so the developer will have the right information when he starts to work on the bug. Thanks for your report!
I'm not sure what is going wrong here, but the way locales work in flatpak is this: With every app org.foo.Bar comes a corresponding org.foo.Bar.Locale extension that has the translations for all languages. However, when flatpak installs the locale extension it typically does a partial install of the .Locale extension containing only the languages flatpak has been configured to install. By default it tries to install the current locale as well as any locale used by someone user on the system (as listed by the user accounts dbus service). If you run "flatpak config" it will print out the current values for the languages (as well as the default it would otherwise use). You can list what is actually installed if you run "flatpak list -da". For example, i get: $ flatpak list -da | grep gedit gedit Edit text files org.gnome.gedit 3.32.2 stable x86_64 flathub user org.gnome.gedit/x86_64/stable c9f9502c0273 - 14,1 MB user,current Locale org.gnome.gedit.Locale stable x86_64 flathub user org.gnome.gedit.Locale/x86_64/stable 447ed140bdec - 326,1 kB user,runtime,partial (/de /en /fi /sv) Where we can see I have the locales for german (/de), english (/en), finnish (/fi) and swedish (/sv) installed. Now, this is with gedit from flathub, not gimp. There could be one of several issues happening: 1) Does a .Locale extension for the gimp exist? (Where is the gimp installed from?) 2) Did the .Locale extension get installed at all? (flatpak list -da will tell) 3) Did the right language get installed? 4) If not, what language is flatpak using (see flatpak config output) 5) Compare ui install vs cli install. I.e. Does installing via gnome-software do the same thing as flatpak install? Comment 2 seems to imply that the problem is in 5, i.e. gnome-software doesn't behave the same as flatpak install. However, the others are interesting to research even then to see *how* gnome-software gets it wrong.
Alex thanks a lot for clarification, I realized that my reproducer is not sufficient, So: 1. I changed the language in control-center this time to Czech 2. I restarted the session 3. I installed GIMP and gedit from flathub Both apps were localized to Cz. So I guess we can close this.
LANG=cs_CZ.UTF-8 gnome-software-3.30.6-3.el8.x86_64 flatpak-1.6.1-1.el8.x86_64