Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-08-22 16:15:27

sonycdr
Member
Registered: 2009-01-30
Posts: 130

Unable to change locale

Using openSUSE Leap 15.5 and XFCE 4.18.

I tried this:

main@localhost:~> sudo localectl set-locale en_UK.UTF-8; localectl
   System Locale: LANG=en_UK.UTF-8
       VC Keymap: en
      X11 Layout: en
       X11 Model: microsoftpro
     X11 Options: terminate:ctrl_alt_bksp
main@localhost:~> 
main@localhost:~> locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
main@localhost:~>

As you can see, even after changing system locale to en_UK, locale command still shows default en_US.
How can I fix this?

Thanks.

Offline

#2 2023-08-22 16:52:15

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Unable to change locale

https://wiki.archlinux.org/title/locale … _immediate notes that the change will take effect on new login. To have it take immediate effect, you need to unset LANG and re-source locale.sh for the effect to be immediate. Not sure if the same applies in openSUSE.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2023-08-22 17:32:23

sonycdr
Member
Registered: 2009-01-30
Posts: 130

Re: Unable to change locale

Since in SUSE there's no /etc/locale.gen nor /etc/profile.d/locale.sh at all, I'd think SUSE handles it differently...

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 522.59 KiB (Peak: 528.55 KiB) ]