Cannot change locale (LANG variable)

I’m truly lost here. Currently, my locale environment variable for language is en_BW for some reason. I can’t change it, it just persists after every fix I try. I’ve added shell script for profiles.d, edited ~/.profile, nothing. Every settings menu (YaST, Plasma) says that my language is English (UK), as I’ve set it like that, but it only affects the LANGUAGE environment variable. It’s the LANG variable that I can’t find a way to change, along with the associated variables (RC_…) I would really appreciate a little help here.
By the way, I’ve changed locale on Debian 12 recently (including the LANG variable), and all I had to do was to run dpkg-reconfigure locales. Is there an equivalent on openSUSE?

Running localectl status returns “LANG=en_GB.UTF-8”, so that’s not confusing at all :woozy_face:

What desktop environment?

KDE Plasma. I’ve already configured the locale in the System Settings to use British English.

KDE exports locale defined in KDE system settings. It will override anything you set in YaST or localectl for your KDE session.

What is in ~/.config/plasma-localerc?

Yes, the config file had en_BW in it. After a manual change, the system has en_GB! Thank you for your help. It didn’t break anything, but I was bugged that many application interpreted en_BW as a default language.

This config file probably should be mentioned in openSUSE documentation, since editing it is apparently the only way to change the LANG variable on a KDE system.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.