How do I set up a global locale for the computer?
I have recently installed Kubuntu 14.04LTS in english but since I am in Spain, I chose Spain as a country and then changed locale options so that I get all country specific configuration such as digit grouping, decimal separator, date format, etc. I also added the spanish language.
Now all applications complain that locale is wrong. check-language-support
tells me I'm using en_ES.UTF-8
as system's locale, and that locale is indeed wrong, there is no locale for english language in Spain.
I tried using Kubuntu's country/region & language settings but it doesn't fix it. I tried using export LANG=en_GB.UTF-8
and export LC_ALL=en_GB.UTF-8
and then sudo dpkg-reconfigure locales
and that caused check-language-support
to say that I now have a correct configuration but if it is, it's only in that konsole session. This problem also prevents konsole from showing unicode characters and I cannot use dead keys or enter any 'international character' such as ñ or ç (those work on other applications such as Firefox, that I'm using to post this question).
So the question is: How do I set up a global locale for the computer?
This is not a bug report, I will probably reinstall my computer eventually if I can't fix it. But I really want to know how I can perform this REALLY basic task.
Thank you.
$ check-language-support
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en:es:en",
LC_ALL = (unset),
LC_PAPER = "en_ES.UTF-8",
LC_ADDRESS = "en_ES.UTF-8",
LC_MONETARY = "en_ES.UTF-8",
LC_NUMERIC = "en_ES.UTF-8",
LC_TELEPHONE = "en_ES.UTF-8",
LC_IDENTIFICATION = "en_ES.UTF-8",
LC_MEASUREMENT = "en_ES.UTF-8",
LC_TIME = "en_ES.UTF-8",
LC_NAME = "en_ES.UTF-8",
LANG = "en_ES.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
hunspell-en-ca libreoffice-help-en-gb libreoffice-l10n-en-gb libreoffice-l10n-en-za mythes-en-au wspanish
$ cat /etc/default/locale
LANG="en_US.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_ES.UTF-8
LANGUAGE=en:es:en
LC_CTYPE="en_ES.UTF-8"
LC_NUMERIC=en_ES.UTF-8
LC_TIME=en_ES.UTF-8
LC_COLLATE="en_ES.UTF-8"
LC_MONETARY=en_ES.UTF-8
LC_MESSAGES="en_ES.UTF-8"
LC_PAPER=en_ES.UTF-8
LC_NAME=en_ES.UTF-8
LC_ADDRESS=en_ES.UTF-8
LC_TELEPHONE=en_ES.UTF-8
LC_MEASUREMENT=en_ES.UTF-8
LC_IDENTIFICATION=en_ES.UTF-8
LC_ALL=
$ update-locale
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en:es:en",
LC_ALL = (unset),
LC_PAPER = "en_ES.UTF-8",
LC_ADDRESS = "en_ES.UTF-8",
LC_MONETARY = "en_ES.UTF-8",
LC_NUMERIC = "en_ES.UTF-8",
LC_TELEPHONE = "en_ES.UTF-8",
LC_IDENTIFICATION = "en_ES.UTF-8",
LC_MEASUREMENT = "en_ES.UTF-8",
LC_TIME = "en_ES.UTF-8",
LC_NAME = "en_ES.UTF-8",
LANG = "en_ES.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").