You are not logged in.

#1 2023-07-25 05:22:42

ArchUserBTW69
Member
Registered: 2022-09-03
Posts: 33

[SOLVED] Locale broken

I'm not sure but i might have done the locale installation wrong and now when i do locale -a it gives this result

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
C
C.UTF-8
POSIX
en_DK.utf8

I dont think thats normal, the thing i have tried is doing locale setup again and i did it by

❯  sudo vi /etc/locale.gen

#en_CA ISO-8859-1
en_DK.UTF-8 UTF-8
#en_DK ISO-8859-1

❯ sudo vi /etc/locale.conf

LANG=en_DK.UTF-8

Please help if you can

EDIT:
So the problem was my plasma and the way to fix it was i had to change the ~/.config/plasma-localerc file and the LANG section.

Last edited by ArchUserBTW69 (2023-07-25 15:58:12)

Offline

#2 2023-07-25 06:29:51

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: [SOLVED] Locale broken

What is the output of

localectl; locale

Are you running plasma?
https://wiki.archlinux.org/title/KDE#Pl … e_settings

Offline

#3 2023-07-25 15:46:59

ArchUserBTW69
Member
Registered: 2022-09-03
Posts: 33

Re: [SOLVED] Locale broken

seth wrote:

What is the output of

localectl; locale

Are you running plasma?
https://wiki.archlinux.org/title/KDE#Pl … e_settings

Sorry i went to sleep.The output of localectl; locale is:

System Locale: LANG=en_DK.UTF-8
    VC Keymap: dk
   X11 Layout: (unset)         
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="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
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=

and yes im running plasma

Last edited by ArchUserBTW69 (2023-07-25 15:47:29)

Offline

#4 2023-07-25 15:49:47

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Online

#5 2023-07-25 15:53:09

ArchUserBTW69
Member
Registered: 2022-09-03
Posts: 33

Re: [SOLVED] Locale broken

Ok i have just changed the file from

[Formats]
LANG=en_US.UTF-8

[Translations]
LANGUAGE=en_US

to:

[Formats]
LANG=en_DK.UTF-8

[Translations]
LANGUAGE=en_US

edit:
i have just restarted my pc after this change and now the locale is working THANK YOU!

Last edited by ArchUserBTW69 (2023-07-25 15:56:13)

Offline

Board footer

Powered by FluxBB