You are not logged in.

#1 2012-01-21 16:52:43

Thomas_Do
Member
Registered: 2011-08-12
Posts: 65

[SOLVED] Localization problem

There are 4 users on the system. The settings and localizations for the other users (German) are fine. Just on my account the localization of gnome stays English. However, the localization in LibreOffice and Firefox is okay.
Some background: I recently setup this PC with Archlinux 64bit and gnome3. Before, I was using Archlinux 32bit and XFCE. To keep the user settings, I mounted the home directories of the old system. No problem with that for the other users, just my account is not correclty localized.

$locale 
LANG=de_DE.utf8 
LC_CTYPE="de_DE.utf8" 
LC_NUMERIC="de_DE.utf8" 
LC_TIME="de_DE.utf8" 
LC_COLLATE="de_DE.utf8" 
LC_MONETARY="de_DE.utf8" 
LC_MESSAGES="de_DE.utf8" 
LC_PAPER="de_DE.utf8" 
LC_NAME="de_DE.utf8" 
LC_ADDRESS="de_DE.utf8" 
LC_TELEPHONE="de_DE.utf8" 
LC_MEASUREMENT="de_DE.utf8" 
LC_IDENTIFICATION="de_DE.utf8" 
LC_ALL= 
$ locale -a 
C 
de_DE 
de_DE@euro 
de_DE.iso88591 
de_DE.iso885915@euro 
de_DE.utf8 
deutsch 
german 
POSIX 

Any suggestions?

Last edited by Thomas_Do (2012-01-22 10:56:43)

Offline

#2 2012-01-21 16:58:59

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: [SOLVED] Localization problem

If you've mounted a different ~, it seems likely that a sourced dotfile in this ~ is overwriting the system locale?


Arch i686 on Phenom X4 | GTX760

Offline

#3 2012-01-21 17:18:52

Thomas_Do
Member
Registered: 2011-08-12
Posts: 65

Re: [SOLVED] Localization problem

stefanwilkens wrote:

If you've mounted a different ~, it seems likely that a sourced dotfile in this ~ is overwriting the system locale?

I tried to identify any (dot)file that could have caused that problem. But so far no success.

Offline

#4 2012-01-21 19:05:07

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: [SOLVED] Localization problem

top of my head:
~/.xinitrc
~/.xsessionrc
~/.profile
~/.bashrc

anything in ~./config/xfce4/ though that shouldn't be sourced if you're logging gnome through GDM now.

what's set in this file:

/var/lib/AccountsService/users/$USER

Arch i686 on Phenom X4 | GTX760

Offline

#5 2012-01-21 19:17:05

Thomas_Do
Member
Registered: 2011-08-12
Posts: 65

Re: [SOLVED] Localization problem

$ cat /var/lib/AccountsService/users/$USER

[user]
Language=de_DE.utf8
XSession=

~/.xsession-errors is quite interesting:

.
.
.
Window manager warning: Locale not understood by C library, internationalization will not work

(gnome-shell:1382): Clutter-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.

(gnome-shell:1382): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.

(process:1396): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
.
.
.

Last edited by Thomas_Do (2012-01-21 19:51:52)

Offline

#6 2012-01-21 19:54:58

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: [SOLVED] Localization problem

this is confusing, GDM sources that file to set the locale for the user session. Something must be overwriting it only for some applications. Is the locale only wrong for gnome-bundled applications?

do you have a ~/.config/locale.conf?

does an application start as german if you start as follows:

$ LANG=de_DE.utf8 application

Last edited by stefanwilkens (2012-01-21 19:58:00)


Arch i686 on Phenom X4 | GTX760

Offline

#7 2012-01-21 20:04:24

Thomas_Do
Member
Registered: 2011-08-12
Posts: 65

Re: [SOLVED] Localization problem

stefanwilkens wrote:

Is the locale only wrong for gnome-bundled applications?

As I wrote above e.g. Firefox & LibreOffice are in German. However Gimp is also English.

stefanwilkens wrote:

do you have a ~/.config/locale.conf?

I had one, but I deleted it. No difference.

stefanwilkens wrote:
$ LANG=de_DE.utf8 nautilus 

is in English

Offline

#8 2012-01-21 20:09:38

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: [SOLVED] Localization problem

verify that these are the only locales uncommented in /etc/locale.gen
de_DE.UTF-8
de_DE
de_DE@euro

run locale-gen as root

log the user out and log back in.


Arch i686 on Phenom X4 | GTX760

Offline

#9 2012-01-21 20:23:39

Thomas_Do
Member
Registered: 2011-08-12
Posts: 65

Re: [SOLVED] Localization problem

Done. No effect.

Thanks for your patience :-)

Offline

#10 2012-01-21 20:35:47

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: [SOLVED] Localization problem

Thomas_Do wrote:

Done. No effect.

Thanks for your patience :-)

I'm just confused, something has to be overwriting your user's specific locale but only for specific applications. Firefox is GTK, but so is nautilus so that's not a common devisor.

I take it that creating a new user with a clean ~ works properly?


Arch i686 on Phenom X4 | GTX760

Offline

#11 2012-01-21 21:01:54

Thomas_Do
Member
Registered: 2011-08-12
Posts: 65

Re: [SOLVED] Localization problem

stefanwilkens wrote:

I take it that creating a new user with a clean ~ works properly?

Yes, that works fine.

When I went to user settings to create a new account the window title was in German (Benutzerkonten), the rest in English ?!?

Offline

#12 2012-01-22 10:51:42

Thomas_Do
Member
Registered: 2011-08-12
Posts: 65

Re: [SOLVED] Localization problem

I solved the issue, although I still do not know what was wrong. Because I could not identify the files that were responsible for the behavior, I thought about replacing my home directory by a fresh installation and copying back important files from my original home folder stepwise.
Because this would have been quite time consuming, I first tried something "quick and dirty". For this I made a fresh user account "test" and deleted it immediately afterwards while keeping the files in /home/test. Then I changed the owner of /home/test/ to my user name and overwrote all files in my home folder (after making a backup)  with the content of /home/test. After this my account was completely localized in German! I just had to change some settings in Gnome (wallpaper, dash settings, activating extensions) and everything worked fine. However, I still do not know whether it was a missing file that caused this behavior or a file with wrong settings.

@ stefanwilkens: Thank you very much for your help.

Offline

#13 2012-01-22 11:09:16

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: [SOLVED] Localization problem

Thomas_Do wrote:

I solved the issue, although I still do not know what was wrong. Because I could not identify the files that were responsible for the behavior, I thought about replacing my home directory by a fresh installation and copying back important files from my original home folder stepwise.
Because this would have been quite time consuming, I first tried something "quick and dirty". For this I made a fresh user account "test" and deleted it immediately afterwards while keeping the files in /home/test. Then I changed the owner of /home/test/ to my user name and overwrote all files in my home folder (after making a backup)  with the content of /home/test. After this my account was completely localized in German! I just had to change some settings in Gnome (wallpaper, dash settings, activating extensions) and everything worked fine. However, I still do not know whether it was a missing file that caused this behavior or a file with wrong settings.

@ stefanwilkens: Thank you very much for your help.

Perhaps the locale for gnome apps is stored in gconf / dconf then... hmmm. There's just so many places that can arbitrarily overwrite system-wide config, lmfao.

glad you got it sorted, I was ready to suggest simply making a new account to be honest.


Arch i686 on Phenom X4 | GTX760

Offline

Board footer

Powered by FluxBB