The officially official Devuan Forum!

You are not logged in.

#1 2021-09-29 20:45:38

Élisabeth
Member
From: France
Registered: 2021-09-06
Posts: 117  

How to change locale for user ?

During the installation process, I installed two locales:
en_GB.UTF-8 (default)
fr_FR.UTF-8

I'd like to make French the default for my user account.

How do I do this?

Offline

#2 2021-09-30 06:59:36

steve_v
Member
Registered: 2018-01-11
Posts: 329  

Re: How to change locale for user ?

As far as the terminal and such goes, set and export the LANG (and/or other related vars, see man 7 environ and man 7 locale) environment variable somewhere in your profile or shell rc files, same as on Debian.
I don't know what DE or other graphical stuff you're running, so I can't really comment on that.

Last edited by steve_v (2021-09-30 07:01:43)


Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

Offline

#3 2021-09-30 08:59:20

Camtaf
Member
Registered: 2019-11-19
Posts: 408  

Re: How to change locale for user ?

I think, on XFCE, it is,

Settings > Keyboard > Layout

Offline

#4 2021-09-30 09:01:34

Élisabeth
Member
From: France
Registered: 2021-09-06
Posts: 117  

Re: How to change locale for user ?

steve_v wrote:

I don't know what DE or other graphical stuff you're running, so I can't really comment on that.

At the moment just the basic installation.

I thought application pick it up from the locale setting.

What happens to folder names such as Download, etc. ?

Offline

#5 2021-09-30 12:25:14

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: How to change locale for user ?

~/.xsessionrc can be used to source ~/.profile and ensure a consistent environment for all graphical desktops. See https://wiki.debian.org/Xsession#User_configuration for more on this.

The only potential problem is that Devuan's stock ~/.profile is not idempotent in respect of the user's PATH. See https://github.com/Head-on-a-Stick/shar … rofile#L30 for a version that can be sourced repeatedly without bloating PATH.


Brianna Ghey — Rest In Power

Offline

#6 2021-09-30 12:42:39

Élisabeth
Member
From: France
Registered: 2021-09-06
Posts: 117  

Re: How to change locale for user ?

Camtaf wrote:

I think, on XFCE, it is,

Settings > Keyboard > Layout

That's for the keyboard layout, which worked out of the box since installation.

Offline

Board footer