Language settings Issue

Hi all,

I a, lost atm , I tried everything. I set locales to CRO when installing, but english as language. After installing the language is a weird mix of english and croatian all over the place.

I’ve set english as language under local settings -> detailed settings.

I’ve also set english as default language in plasma settings.

Rebooted few times, but it is still same… Any help ?

All I want is everything in ENG and only CRO keyboard xD thx

System SettingsInput DevicesKeyboardLayouts+ Add

1 Like
marko-hpenvyx360convertible13ar0xxx marko]# ~/.config/plasma-localerc
bash: /root/.config/plasma-localerc: No such file or directory

That would be in your user home directory - not in /root.

Am I doing something wrong ? :frowning:

[    marko@marko-hpenvyx360convertible13ar0xxx ~]$ ~/.config/plasma-localerc
    bash: /home/marko/.config/plasma-localerc: Permission denied

[marko@marko-hpenvyx360convertible13ar0xxx ~]$ 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=hr_HR.UTF-8
LC_CTYPE="hr_HR.UTF-8"
LC_NUMERIC="hr_HR.UTF-8"
LC_TIME="hr_HR.UTF-8"
LC_COLLATE="hr_HR.UTF-8"
LC_MONETARY="hr_HR.UTF-8"
LC_MESSAGES="hr_HR.UTF-8"
LC_PAPER="hr_HR.UTF-8"
LC_NAME="hr_HR.UTF-8"
LC_ADDRESS="hr_HR.UTF-8"
LC_TELEPHONE="hr_HR.UTF-8"
LC_MEASUREMENT="hr_HR.UTF-8"
LC_IDENTIFICATION="hr_HR.UTF-8"
LC_ALL=

Everywhere in settings I set ENG as default. Only keyboard is CRO (HR). It seems that reboot switch everything back to HR…weird

Got some new thing while taking info for other bug

[marko@marko-hpenvyx360convertible13ar0xxx ~]$ inxi --full --verbosity=7 --filter --no-host
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LANG = "hr_HR.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Please consult the locale troubleshooting guide.

I tried to follow steps, but after editing everything, same error I got :frowning:

You have checked that the language is enabled in /etc/locale.gen?

what is the output of the commands mentioned in the linked guide?

Before none, after my editing enabled is :
en_US.UTF-8 UTF-8
en_US ISO-8859-1

Also I have in etc/locale/locale.gen.pacnew and locale.gen (which I can not open, file type is Genesys ROM)

[marko@marko-hpenvyx360convertible13ar0xxx ~]$ localectl
   System Locale: LANG=en_US.UTF-8
       VC Keymap: croat
      X11 Layout: hr
       X11 Model: pc101
[marko@marko-hpenvyx360convertible13ar0xxx ~]$ locale -a
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
POSIX
en_US.utf8
[marko@marko-hpenvyx360convertible13ar0xxx ~]$

The solution is exactly as described in the linked guide.

You need to enable hr_HR.UTF-8 in /etc/locale.gen

Locate the lines reading

#hne_IN UTF-8  
#hr_HR.UTF-8 UTF-8  
#hr_HR ISO-8859-2  
#hsb_DE ISO-8859-2  

Edit the file to read

#hne_IN UTF-8  
hr_HR.UTF-8 UTF-8  
#hr_HR ISO-8859-2  
#hsb_DE ISO-8859-2  

Save the file and run

sudo locale-gen

Yes, I did that…Steps which you said.

I got the same result for locale -a and localectl …

damn, I dont know why

Still have mixed ENG and CRO (HR) lang

LANG=hr_HR.UTF-8
LC_CTYPE="hr_HR.UTF-8"
LC_NUMERIC="hr_HR.UTF-8"
LC_TIME="hr_HR.UTF-8"
LC_COLLATE="hr_HR.UTF-8"
LC_MONETARY="hr_HR.UTF-8"
LC_MESSAGES="hr_HR.UTF-8"
LC_PAPER="hr_HR.UTF-8"
LC_NAME="hr_HR.UTF-8"
LC_ADDRESS="hr_HR.UTF-8"
LC_TELEPHONE="hr_HR.UTF-8"
LC_MEASUREMENT="hr_HR.UTF-8"
LC_IDENTIFICATION="hr_HR.UTF-8"
LC_ALL=

Look again - you are missing hr_HU …

There is something wrong - the locale.gen file is

$ file /etc/locale.gen
/etc/locale.gen: ASCII text

I can not find hr_HU (it is for Hungary, different language)

for hr I have only those two :
hr_HR.UTF-8 UTF-8
#hr_HR ISO-8859-2

That is the one - save the file and run

sudo locale-gen

Ok, I have that enabled.

What about those two : en_US.UTF-8 UTF-8
en_US ISO-8859-1

I need eng system and only hr keyboard :slight_smile:

The recommended settings is UTF-8 - socomment the ISO line

Ok, I really don’t know what I am doing wrong.

I did every step as you suggested .

Enabled :
en_US.UTF-8 UTF-8
hr_HR.UTF-8 UTF-8

,generated new file and still got this :

[marko@marko-hpenvyx360convertible13ar0xxx ~]$ sudo locale-gen
[sudo] password for marko: 
Generating locales...
  en_US.UTF-8... done
Generation complete.
[marko@marko-hpenvyx360convertible13ar0xxx ~]$ localectl
   System Locale: LANG=en_US.UTF-8
       VC Keymap: croat
      X11 Layout: hr
       X11 Model: pc101
[marko@marko-hpenvyx360convertible13ar0xxx ~]$ locale -a
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
POSIX
en_US.utf8
[marko@marko-hpenvyx360convertible13ar0xxx ~]$

The locale is not generated - you need to check the file

cat /etc/locale.gen | grep 'hr_HR'