So ever since I installed Kubuntu on the computer I'm using right now I've had locale issues, which I'll admit is nothing new or unique to Ubuntu/Linux. I'm trying to set things up so that my keyboard and general locale (time, date, etc) settings are Swedish but the system language is otherwise English since that makes things so much easier.

Right now my /etc/default/locale looks like this:


And I have set KDE Plasma translations (Regional Settings -> Language) to American English first and svenska[sic] second.

Keyboard layout is also set to Swedish and works.

Under Regional Settings -> Formats I've tried setting Region to United States - American English (en_US) with Detailed Settings on and everything set to Sverige - svenska (sv_SE) there.

In Xorg everything seems to be in English as it should but in the terminal I keep running into programs that insist on Swedish output. For example:

$ sudo apt-get update
Bra:1 http://repository.spotify.com stable InRelease
Bra:2 http://archive.ubuntu.com/ubuntu focal InRelease
Bra:3 http://security.ubuntu.com/ubuntu focal-security InRelease
Bra:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Bra:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Läser paketlistor… Färdig

Does anyone know what setting I'm missing here? Surely I should be able to force this system to default to American English for the language while still retaining sane formatting for date and time?

Or is there some good alternative "en_SE" locale I can install that won't break horribly the next time I run a dist-upgrade?

  • Did you run update-locale? Have you restarted inbetween (or at least started a new shell)? Did you just manually change the settings in the file or also run dpkg-reconfigure locales?
    – FelixJN
    Jan 27 at 18:12
  • I have run update-locale and I have rebooted, logged in and out and restarted my shell several times. I have not run dpkg-reconfigure locales as I was under the impression that it would wreak havoc with my config files.
    – GomerPyle
    Jan 27 at 18:19
  • What output do you get from locale and sudo locale? The one you expect?
    – FelixJN
    Jan 27 at 18:30
  • Yes, the same as what's in /etc/default/locale for both.
    – GomerPyle
    Jan 27 at 18:37
  • Does e.g. perl throw an error? echo 'print "hello world"' | perl any problems regarding locale?
    – FelixJN
    Jan 27 at 19:04

You have in /etc/default/locale (or more likely in your output from the locale command):


That's wrong. en_US translation files are usually empty, since en_US is the original language. And when gettext does not find an en_US translation for a string, it falls back to Swedish in some cases.

So change that somehow to:

  • could repoduce and confirm
    – FelixJN
    Jan 27 at 23:01
  • This does appear to have been the issue. However, I also had to edit ~/.config/plasma-localerc and restart Xorg because even after changing /etc/default/locale the old setting persisted after logging out and in again.
    – GomerPyle
    Jan 28 at 6:36
  • @GomerPyle: Yeah, I was intentionally vague about how to do it exactly, since I don't use KDE. Good that you figured it out. Jan 28 at 13:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.