You are not logged in.
Relevant information: im using i3wm
Hello, i have a problem, when i run locale on my console i get the following output:
[krapp@krapp-Thinkpad-T420 ~]$ 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_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=es_ES.UTF-8
LC_COLLATE=C
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=The configuration i want is the Argentina locales (dates, hour, money) and the system language in english, so for that, in the installation i modified /etc/locale.gen uncommenting es_AR.UTF-8 UTF-8.
Then i ran locale-gen
After that I modified /etc/locale.conf writing LANG=en_US.UTF-8
Finally I modified /etc/vconsole.conf writing KEYMAP=la-latin1 (for spanish latin america keyboard layout).
Now, neither of that seems to be having any effect, because all my locales are now in en_US
Later i tried using i3status in the terminal, with this output:
Could not set locale. Please make sure all your LC_* / LANG settings are correct.Then i tried using the following commands i found on internet:
sudo locale-gen es_AR.UTF-8 UTF-8 (nothing changed on locale output)
sudo update-locale es_AR.UTF-8 UTF-8 (update-locale: command not found)
export LC_ALL="es_AR.UTF-8"This last command, the export one, it changed the locale output to this:
[krapp@krapp-Thinkpad-T420 ~]$ locale
LANG=en_US.UTF-8
LC_CTYPE="es_AR.UTF-8"
LC_NUMERIC="es_AR.UTF-8"
LC_TIME="es_AR.UTF-8"
LC_COLLATE="es_AR.UTF-8"
LC_MONETARY="es_AR.UTF-8"
LC_MESSAGES="es_AR.UTF-8"
LC_PAPER="es_AR.UTF-8"
LC_NAME="es_AR.UTF-8"
LC_ADDRESS="es_AR.UTF-8"
LC_TELEPHONE="es_AR.UTF-8"
LC_MEASUREMENT="es_AR.UTF-8"
LC_IDENTIFICATION="es_AR.UTF-8"
LC_ALL=es_AR.UTF-8But it resets back to en_US after i reboot.
Also, every time i log in, i have my keyboard layout changed to en_US again.
Last edited by Krapp (2021-09-27 23:33:58)
Offline
The configuration i want is the Argentina locales (dates, hour, money) and the system language in english, so for that, in the installation i modified /etc/locale.gen uncommenting es_AR.UTF-8 UTF-8.
Then i ran locale-gen
After that I modified /etc/locale.conf writing LANG=en_US.UTF-8
You only enabled es_AR.UTF-8 so you can not use en_US.UTF-8 in locale.conf and you only set one value rather than a value for LANG and a different one for LC_NUMERIC plus LC_TIME.
Please also use code tags for commands and their outputs.
Offline
Krapp wrote:The configuration i want is the Argentina locales (dates, hour, money) and the system language in english, so for that, in the installation i modified /etc/locale.gen uncommenting es_AR.UTF-8 UTF-8.
Then i ran locale-gen
After that I modified /etc/locale.conf writing LANG=en_US.UTF-8You only enabled es_AR.UTF-8 so you can not use en_US.UTF-8 in locale.conf and you only set one value rather than a value for LANG and a different one for LC_NUMERIC plus LC_TIME.
Please also use code tags for commands and their outputs.
Thanks a lot, I uncommented en_US.UTF-8 from locale.gen and I ran locale-gen in the command line, now locale has no errors when running it, now i have to figure out how to change my keyboard layout to la-latin1
EDIT - i think man xkeyboard-config has the answer
Last edited by Krapp (2021-09-27 23:33:32)
Offline