You are not logged in.
Hello everyone.
Currently I am setting up Archlinux Gnome Shell and would like to localize it following way: English inside tty's and virtual terminal (maintenance reasons) and Russian inside Gnome and other graphic applications. I already changed:
$ gnome-control-center region
Language: Russian
$ echo LANG=en_US.UTF-8 > /etc/locale.conf
Now all seems to be according to my intention, except Gnome Applications (gedit, nautilus, charmap, etc.)
I found out that Gnome Shell exports only LANG variable according to settings but Gnome Application use LC_MESSAGES variable to determine users language:
$ echo $LC_ALL, $LC_MESSAGES, $LANG
, , ru_RU.UTF-8
$ LC_MESSAGES=ru_RU.UTF-8 nautilus
* Nautilus starts with russian l10n *
Can anybody propose some sort of fix for this chaos?
Last edited by mrEDitor (2016-06-26 21:56:02)
Just another student of SWE.
Offline
Offline
Seems like I was wrong and LC_MESSAGES doesn't really matter. But anyway I don't feel good about localized log files.
When I start nautilus from "Run" (Alt+F2), I get right localization just like in my Gnome Shell.
And every time I start nautilus from Applications overview, I've got wrong (system-wide) localization. I also tried to edit Exec command in /usr/share/applications/org.gnome.Nautilus.desktop and relogin and got nothing again.
Is it possible that Gnome Applications overview have any other configs with higher priority than .desktop-files from /usr/share/applications?
Last edited by mrEDitor (2016-06-26 19:57:18)
Just another student of SWE.
Offline
Have you tried setting the language with the Gnome settings application?
Offline
Yes, and rest of applications (non-gnome-extra) are localized.
$ gnome-control-center region Language: Russian
BTW, problem is the same on any created users with non-system locale.
Ok, I solved this problem at last. It was caused by dbus-activating of gnome apps what means that there were starting before Gnome Shell LANG enviroment variable setting. The solution is to refresh LANG env after Gnome Shell load via
dbus-update-activation-environment LANG
I use ~/.config/autostart for it.
Thanks to slithery for help.
Last edited by mrEDitor (2016-06-26 21:54:40)
Just another student of SWE.
Offline