I hate to bring this up again, but I’m still unable to get any sort of localisation to work on the snaps that I publish. Has anybody actually got a snap that correctly localises to non-English locales? I have confirmed that the translation files are present in the snap but they fail to be picked-up by libc/gettext. Running locale -a
inside the snap, through the desktop-launch
wrapper reports:
$ desktop-launch locale -a
ln: failed to create symbolic link '/home/dllewellyn/snap/gimp/61/.config/gtk-2.0/gtkfilechooser.ini': File exists
C
C.UTF-8
POSIX
And running gimp, as an example, with LANG
set to fr_FR
I get:
$ env LANG=fr gimp
ln: failed to create symbolic link '/home/dllewellyn/snap/gimp/61/.config/gtk-2.0/gtkfilechooser.ini': File exists
(gimp:30076): Gtk-WARNING **: 21:05:06.204: Locale not supported by C library.
Using the fallback 'C' locale.
Gtk-Message: 21:05:06.406: Failed to load module "gail"
Gtk-Message: 21:05:06.406: Failed to load module "atk-bridge"
/snap/gimp/61/usr/bin/gimp: Gimp-Widgets-WARNING: parse_iso_codes: error parsing '/build/gimp/parts/gimp/install/usr/share/xml/iso-codes/iso_639.xml': No such file or directory
I also tested Gnome Calculator on Ubuntu 18.10 and that is also not localised in any way when run with LANG=fr_FR gnome-calculator
.