You are not logged in.

#1 2016-06-26 18:40:13

mrEDitor
Member
Registered: 2016-01-16
Posts: 3

[Solved] Gnome Apps localization (D-Bus activatable apps preload)

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

#2 2016-06-26 19:04:10

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] Gnome Apps localization (D-Bus activatable apps preload)

Have you tried setting LC_MESSAGES in your locale.conf?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2016-06-26 19:27:28

mrEDitor
Member
Registered: 2016-01-16
Posts: 3

Re: [Solved] Gnome Apps localization (D-Bus activatable apps preload)

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

#4 2016-06-26 20:19:48

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] Gnome Apps localization (D-Bus activatable apps preload)

Have you tried setting the language with the Gnome settings application?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2016-06-26 20:45:46

mrEDitor
Member
Registered: 2016-01-16
Posts: 3

Re: [Solved] Gnome Apps localization (D-Bus activatable apps preload)

Yes, and rest of applications (non-gnome-extra) are localized.

mrEDitor wrote:
$ 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

Board footer

Powered by FluxBB