Change language for single user on desktop system?


Last year I installed Rocky Linux 8 + KDE from EPEL on my dad’s laptop. My parents live in Austria and they speak german, so I localized the machine in german.

$ localectl status
   System Locale: LANG=de_AT.UTF-8
       VC Keymap: at-nodeadkeys
      X11 Layout: at
     X11 Variant: nodeadkeys

I will be using this laptop over the whole month of August to do some work. I’m used to have a french system and interface. So first I tried putting LANG=fr_FR.UTF-8 and export LANG in my ~/.bashrc, but this did nothing to KDE.

Then I found the corresponding entry in KDE’s System Settings, and now I have a partial success. KDE native applications like Dolphin and Kate display their menus in french as expected. On the other hand, apps like Firefox, Thunderbird and LibreOffice still show up in german.

What’s the trick to have all my graphical environment use fr_FR.UTF-8 without using localectl (because my dad still needs his KDE in german) ?

I think it depends upon what window manager you use.
lightdm gives you the option to select the language during login, cant remember with sddm because ive not used it for a while.
but there is another lang env in my environment GDM_LANG
try setting that in your .bashrc.
regards peter