# "Region & Language" settings option throws an error and doesn't apply changes

**URL:** <https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210>\
**Category:** Plasma\
**Created:** [January 19, 2023, 1:23pm UTC](https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210 "2023-01-19T13:23:52Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![firefly](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/firefly/32/67235_2.png) [@firefly](https://forum.endeavouros.com/u/firefly)\
**Post date:** [January 19, 2023, 1:23pm UTC](https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210/1 "2023-01-19T13:23:52Z")

</div>

I’m trying to adjust Time/Date settings to display months and days in English but KDE throws an error which makes no sense to me since I **do** have `glibc` package.

 ![settings](https://forum.endeavouros.com/uploads/default/original/3X/d/7/d79c11946b6d998d619819e8f64a816cf8d8f623.png)

```auto
pacman -Q glibc
glibc 2.36-7

```

Changes also are not applied after reboot.

Wiki [suggests](https://wiki.archlinux.org/title/KDE#Plasma_desktop_does_not_respect_locale/language_settings) to remove `~/.config/plasma-localerc` but I’m not comfortable to delete stuff if I don’t have full understanding of how things are interconnected and function.

Is it safe to indeed remove such file or there might be another solution?

---

<div class="post-metadata">

**Author:** ![petsam](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/petsam/32/41308_2.png) [@petsam](https://forum.endeavouros.com/u/petsam)\
**Post date:** [January 19, 2023, 1:36pm UTC](https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210/2 "2023-01-19T13:36:34Z")

</div>

> [@firefly](#):
>
> Is it safe to indeed remove such file

Yes. You can just rename the file (add an extension) so you can compare it with the new one that will be created after re-login.

On the topic, Plasma changes stuff, but does not have any mechanism to merge previous configurations to the new ones 🤷 .

---

<div class="post-metadata">

**Author:** ![firefly](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/firefly/32/67235_2.png) [@firefly](https://forum.endeavouros.com/u/firefly)\
**Post date:** [January 19, 2023, 2:31pm UTC](https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210/3 "2023-01-19T14:31:22Z")

</div>

Thank you. Basically the newly generated file is the same as the old one.

Recreating it did the trick only partially: it updated date and time language for lock screen and clock/calendar in tray but not for login screen 😕

---

<div class="post-metadata">

**Author:** ![petsam](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/petsam/32/41308_2.png) [@petsam](https://forum.endeavouros.com/u/petsam)\
**Post date:** [January 19, 2023, 2:36pm UTC](https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210/4 "2023-01-19T14:36:53Z")

</div>

> [@firefly](#):
>
> Recreating it did the trick only partially

I thought we were after the error message in GUI. Was it gone?

> [@firefly](#):
>
> it updated date and time language for lock screen and clock/calendar in tray

These are session connected, so it works as designed.

> [@firefly](#):
>
> not for login screen

This is system connected, so it works as designed. 😉

If you want to change SDDM (login screen) locale, change system locale relevant settings. Check [Archwiki](https://wiki.archlinux.org/title/SDDM#SDDM_loads_only_US_keyboard_layout) on howto.

---

<div class="post-metadata">

**Author:** ![firefly](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/firefly/32/67235_2.png) [@firefly](https://forum.endeavouros.com/u/firefly)\
**Post date:** [January 19, 2023, 3:03pm UTC](https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210/5 "2023-01-19T15:03:21Z")

</div>

> [@petsam](#):
>
> I thought we were after the error message in GUI. Was it gone?

No. It still pops up whenever I apply some changes.

> [@petsam](#):
>
> If you want to change SDDM (login screen) locale, change system locale relevant settings. Check [Archwiki](https://wiki.archlinux.org/title/SDDM#SDDM_loads_only_US_keyboard_layout) on howto.

Probably I poorly worded that. I meant not keyboard layout but date and time such screen displays, like:

> 13:50  
> Thursday, 19 January 2023

Layout for both login and lock screens is basically the same. Lock screen however shows such date in English (as shown above) but login screen - no.

---

<div class="post-metadata">

**Author:** ![petsam](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/petsam/32/41308_2.png) [@petsam](https://forum.endeavouros.com/u/petsam)\
**Post date:** [January 19, 2023, 3:16pm UTC](https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210/6 "2023-01-19T15:16:50Z")

</div>

> [@firefly](#):
>
> Lock screen however shows such date in English (as shown above) but login screen - no.

This is a multi-user system issue.  
If you only have one user, or more, may have a different approach.  
User setting for display language should be independent of system display language.

Display language is controlled from the `LANG` environment variable.  
For system, this is set at `/etc/locale.conf`  
For user, it depends on the DE, and/or session type.

TBO, I haven’t understood what exactly are your display language preferences. 🤷

---

<div class="post-metadata">

**Author:** ![firefly](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/firefly/32/67235_2.png) [@firefly](https://forum.endeavouros.com/u/firefly)\
**Post date:** [January 19, 2023, 4:00pm UTC](https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210/7 "2023-01-19T16:00:01Z")

</div>

> [@petsam](#):
>
> TBO, I haven’t understood what exactly are your display language preferences. 🤷

Ok, I’ll try to explain it better 🙂

I’m the only user of this machine. During installation process I chose English as my language and Poland as my current location. Afterwards while customizing and tuning my system I noticed that only lock screen, login screen and clock/calendar in tray have days and months written in Polish. Everything else is displayed in English.

My end-goal is to set English language to be system wide with the exception of location/timezone as Poland and measurements as metric. So as I wrote in first post I tried to adjust individual region/language settings in order to achieve that but encountered mentioned problems.

Thus seemingly trivial task turned out to be more complex 🙂

And looking at my `/etc/locale.conf`, I see that my settings definitely got messed up…

```auto
LANG=en_US.UTF-8
LC_ADDRESS=pl_PL.UTF-8
LC_IDENTIFICATION=pl_PL.UTF-8
LC_MEASUREMENT=pl_PL.UTF-8
LC_MONETARY=pl_PL.UTF-8
LC_NAME=pl_PL.UTF-8
LC_NUMERIC=pl_PL.UTF-8
LC_PAPER=pl_PL.UTF-8
LC_TELEPHONE=pl_PL.UTF-8
LC_TIME=pl_PL.UTF-8

```

---

<div class="post-metadata">

**Author:** ![petsam](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/petsam/32/41308_2.png) [@petsam](https://forum.endeavouros.com/u/petsam)\
**Post date:** [January 19, 2023, 4:23pm UTC](https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210/8 "2023-01-19T16:23:24Z")

</div>

> [@firefly](#):
>
> `LANG=en_US.UTF-8`

Leave only the LANG setting in that file and delete the rest.  
Reboot.  
Everything should be set to English.

Are you confusing **display language** with **timezone**? They are independent.  
What characters do you want to be displayed in Poland?

I am still confused, or I have to finish with my 2nd cup of coffee 🙁

---

<div class="post-metadata">

**Author:** ![firefly](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/firefly/32/67235_2.png) [@firefly](https://forum.endeavouros.com/u/firefly)\
**Post date:** [January 19, 2023, 4:41pm UTC](https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210/9 "2023-01-19T16:41:18Z")

</div>

> [@petsam](#):
>
> Are you confusing **display language** with **timezone**?

No, I believe I’m not.

> [@petsam](#):
>
> What characters do you want to be displayed in Poland?

English (en\_US , UTF-8)

---

<div class="post-metadata">

**Author:** ![petsam](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/petsam/32/41308_2.png) [@petsam](https://forum.endeavouros.com/u/petsam)\
**Post date:** [January 19, 2023, 4:45pm UTC](https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210/10 "2023-01-19T16:45:34Z")

</div>

> [@firefly](#):
>
> > [@petsam](#):
> >
> > What characters do you want to be displayed in Poland?
> 
> English (en\_US , UTF-8)

We have a communication problem 🤣  
Please, try a little more. 🙏

I rephrase:  
Show me something that is printed on the screen in English language, and write that one in Poland (like how you expect to be printed **on the screen** ).

---

<div class="post-metadata">

**Author:** ![firefly](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/firefly/32/67235_2.png) [@firefly](https://forum.endeavouros.com/u/firefly)\
**Post date:** [January 20, 2023, 1:49pm UTC](https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210/11 "2023-01-20T13:49:49Z")

</div>

> [@petsam](#):
>
> We have a communication problem 🤣

Can’t argue with that 🙂  
In any case, I really appreciate you sticking around and your willingness to help.

Basically I achieved what I wanted by editing `/etc/locale.conf` as you suggested but if you don’t mind, I’d like to ask you to clarify few additional things.

In my understanding `~/.config/plasma-localerc`, which reflects settings set in Plasma’s GUI (first post screenshot), overwrites/updates `/etc/locale.conf`. And to see such end-result we can execute this in terminal:

> locale

Correct?

If so, my question is: what might be the cause of some settings from `~/.config/plasma-localerc` not being applied to `/etc/locale.conf` ?

Example:  
Here is my `~/.config/plasma-localerc`

```auto
[Formats]
LANG=en_US.UTF-8
LC_MEASUREMENT=pl_PL.UTF-8
LC_TELEPHONE=en_GB.UTF-8
LC_TIME=en_GB.UTF-8

```

Here is `/etc/locale.conf`

```auto
LANG=en_US.UTF-8

```

And here is `locale` output in terminal

```auto
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=en_GB.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=pl_PL.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

```

As you can see, changed `LC_TIME` and `LC_MEASUREMENT` from Plasma’s config got applied but ` LC_TELEPHONE` stayed the same.  
Why?

The only conclusion I was able to make is that it’s some kind of bug but maybe I’m missing something 😕

---

<div class="post-metadata">

**Author:** ![Echoa](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/echoa/32/77553_2.png) [@Echoa](https://forum.endeavouros.com/u/Echoa)\
**Post date:** [January 20, 2023, 2:10pm UTC](https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210/12 "2023-01-20T14:10:26Z")

</div>

If using sddm it seems to be an issue of it not respecting locale

> <https://github.com/sddm/sddm/issues/1570>
>
> Hi all!
> 
> After recently installing Artix Linux, I noticed that SDDM does alway…s start up in English, and appears in my defined locale after a manual restart. I didn't see this behavior on Gentoo, so I investigated this and found that SDDM seems not to use the locale set in \`/etc/locale.conf\`. After starting a root shell to restart SDDM, /etc/locale.conf is sourced, the LANG variable is set and SDDM uses it, so it appears in my locale after a restart.
> 
> Distributors seem to work around this in different ways. Gentoo uses a unified init script to launch a login manager, which starts another script to do the actual work. There, \`/etc/profile.env\` is sourced (which is built from the values in \`/etc/locale.conf\` and others).
> 
> On Artix, I found two ways to work around this problem. The first one is to add \`. /etc/locale.conf\` to the init script (OpenRC in my case), the second one is to add \`LANG=...\` to \`/etc/environment\`.
> 
> I suggested to fix the init script, but the responding Artix dev said this is rather an upstream bug (or shortcoming) that should be fixed upstream. I think he's not wrong; SDDM actually \_should\_ respect the setting in \`/etc/locale.conf\`, as this is a pretty standard file for the locale definition, even on systemd systems.
> 
> The other workaround is not very convenient, as one has to put the same setting in two places. It works, but it's not nice.
> 
> So I think this should be fixed (or better: added).
> 
> Cheers, Tobias

---

<div class="post-metadata">

**Author:** ![petsam](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/petsam/32/41308_2.png) [@petsam](https://forum.endeavouros.com/u/petsam)\
**Post date:** [January 21, 2023, 12:11am UTC](https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210/13 "2023-01-21T00:11:04Z")

</div>

> [@firefly](#):
>
> what might be the cause of some settings from `~/.config/plasma-localerc` not being applied to `/etc/locale.conf` ?

If the file is not edited by you with an editor, but is just updated after changing Plasma relevant System Settings, then only a Plasma dev can answer about the difference.

From what I know, `locale` output shows _assumed_ values (quoted) for the variables that are not explicitly set somewhere (system, user session).  
If some setting is important for you and not set properly, try a standard method to set it:  
Export the value from a dot file like `.profile` or `.xprofile`. For example,

```auto
export LC_TELEPHONE="en_GB.UTF-8"

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [January 23, 2023, 12:11am UTC](https://forum.endeavouros.com/t/region-language-settings-option-throws-an-error-and-doesnt-apply-changes/36210/14 "2023-01-23T00:11:45Z")

</div>

Closed on January 23, 2023, 12:11am UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
