You are not logged in.

#1 2015-02-02 12:18:19

xanb
Member
Registered: 2012-07-24
Posts: 418

[solved] .config/locale.conf is ignored by XFCE

Hi,

I have this

[xan@argonia ~]$ cat .config/locale.conf 
LANG=ca_ES.UTF-8

in .config/locale.conf but XFCE displays windows in english. What's wrong? In tty1, ... tty8 all is fine.

Last edited by xanb (2015-02-15 16:25:19)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#2 2015-02-02 13:31:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] .config/locale.conf is ignored by XFCE

Read the wiki https://wiki.archlinux.org/index.php/Locale

What's the output of 'localectl'?

Last edited by karol (2015-02-02 13:32:28)

Offline

#3 2015-02-02 13:43:47

th3voic3
Member
Registered: 2012-03-20
Posts: 92

Re: [solved] .config/locale.conf is ignored by XFCE

Also how do you start XFCE?

Offline

#4 2015-02-02 16:22:37

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] .config/locale.conf is ignored by XFCE

th3voic3 wrote:

Also how do you start XFCE?

With lxdm


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#5 2015-02-02 16:28:46

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: [solved] .config/locale.conf is ignored by XFCE

xanb wrote:
th3voic3 wrote:

Also how do you start XFCE?

With lxdm

Is the language in the language selection menu in LXDM set to the corresponding language?


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#6 2015-02-02 16:37:32

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [solved] .config/locale.conf is ignored by XFCE

locale are set via environment variables (see them with locale). Some DE may read ~/.config/locale.conf but I am completely unsure for XFCE. If there is no GUI tools to set locale in XFCE, you can set them in your profile ~/.profile (or ~/.bash_profile). Every display manager should read this file by default.

Offline

#7 2015-02-03 05:54:07

M4R10zM0113R
Member
From: Guatemala
Registered: 2015-01-06
Posts: 42

Re: [solved] .config/locale.conf is ignored by XFCE

If you're using lightdm, there's a dotfile which gets in charge of the display language on the DE, called ".dmrc"
I could set my display language by setting the locale on there.

$ cat ~/.dmrc
[Desktop]
Language=en_US.utf8
Session=i3

- "I summoned Cthulhu and Satan trying to fix my interxternet. How I'm gonna fix it now??"
- "We can't fix it either"

Offline

#8 2015-02-03 15:45:04

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] .config/locale.conf is ignored by XFCE

No folks, you don't understand me. In the wiki, it is said that locale.conf sets the language on each user. So if I have .config/locale.conf, XFCE should watch at that and serves the contents accordingly.

It's not issue of lightdm or lxdm.

Last edited by xanb (2015-02-03 15:45:25)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#9 2015-02-03 15:54:42

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [solved] .config/locale.conf is ignored by XFCE

ArchWiki wrote:

The precedence of these locale.conf files is defined in /etc/profile.d/locale.sh.

See #Supported variables, man 5 locale.conf and related for details.

https://wiki.archlinux.org/index.php/Lo … the_locale

Offline

#10 2015-02-03 15:54:50

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [solved] .config/locale.conf is ignored by XFCE

xanb wrote:

It's not issue of lightdm or lxdm.

It probably is. The wiki explains that /etc/profile.d/locale.sh is responsible for setting the environment variables using the locale.conf files. DMs can never agree on how they use the user's shell (ignore it completely/start it as login or non-login shell), so that could lead to this locale.sh never being executed.

Offline

#11 2015-02-03 16:06:33

progandy
Member
Registered: 2012-05-17
Posts: 5,193

Re: [solved] .config/locale.conf is ignored by XFCE

Raynman wrote:
xanb wrote:

It's not issue of lightdm or lxdm.

It probably is. The wiki explains that /etc/profile.d/locale.sh is responsible for setting the environment variables using the locale.conf files. DMs can never agree on how they use the user's shell (ignore it completely/start it as login or non-login shell), so that could lead to this locale.sh never being executed.

Even if it is executed, the DM or WM can decide to execute another configuration script afterwards that reads the language from somewhere else.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#12 2015-02-03 16:13:28

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: [solved] .config/locale.conf is ignored by XFCE

progandy wrote:
Raynman wrote:
xanb wrote:

It's not issue of lightdm or lxdm.

It probably is. The wiki explains that /etc/profile.d/locale.sh is responsible for setting the environment variables using the locale.conf files. DMs can never agree on how they use the user's shell (ignore it completely/start it as login or non-login shell), so that could lead to this locale.sh never being executed.

Even if it is executed, the DM or WM can decide to execute another configuration script afterwards that reads the language from somewhere else.

This. The reason I brought up setting it in the DM is that I have this set in ~/.config/locale.conf:

claire ~ % cat ~/.config/locale.conf
LANG=en_GB.UTF-8
LC_CTYPE=en_GB.UTF-8
LC_NUMERIC=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
LC_MONETARY=en_GB.UTF-8
LC_MESSAGES=en_GB.UTF-8
LC_PAPER=en_GB.UTF-8
LC_NAME=en_GB.UTF-8
LC_ADDRESS=en_GB.UTF-8
LC_TELEPHONE=en_GB.UTF-8
LC_MEASUREMENT=en_GB.UTF-8
LC_IDENTIFICATION=en_GB.UTF-8
LANGUAGE=en_GB.UTF-8:en

This seemingly only applies to my terminal and applications I start with the run dialogue in MATE. Anything else seems to run on en_GB.iso88591, because that's what I set in MDM.

Last edited by clfarron4 (2015-02-03 16:13:58)


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#13 2015-02-04 10:02:43

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] .config/locale.conf is ignored by XFCE

So there is no way for lxdm looks at .config/locale.conf of each user?


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#14 2015-02-15 16:24:57

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] .config/locale.conf is ignored by XFCE

Solved:

$ cat .bashrc 
#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
alias ssh='dbclient'
PS1='[\u@\h \W]\$ '

export XDG_CONFIG_HOME="~/.config"
export LANG=ca_ES.UTF-8

and

$ cat .profile 
export LANG=ca_ES.utf8

Owning one OpenRC (artoo way) and other three systemd machines

Offline

Board footer

Powered by FluxBB