0

I installed Debian 11 Gnome. Everything is Ok, except for the language in the Calendar (at top middle of screen).

In Settings > Region and Language, Language is English and Formats is set to United States. However, my timezone is +07 (Bangkok, Thailand) and I suspect because of this my calendar uses Thai language.

How can I fix this so that English language is used? enter image description here

Update

The locale command outputs the following:

LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=th_TH.UTF-8
LC_TIME=th_TH.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=th_TH.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=th_TH.UTF-8
LC_NAME=th_TH.UTF-8
LC_ADDRESS=th_TH.UTF-8
LC_TELEPHONE=th_TH.UTF-8
LC_MEASUREMENT=th_TH.UTF-8
LC_IDENTIFICATION=th_TH.UTF-8
LC_ALL=
3
  • 1
    Could you check your locale settings? What is the output of the locale command from a terminal prompt?
    – FelixJN
    Sep 28, 2021 at 7:07
  • @FelixJN I updated my question with output of locale Sep 28, 2021 at 7:14
  • How can I update these values with correct ones? Sep 28, 2021 at 7:15

1 Answer 1

1

Locales may be set in various positions. The default values are set in /etc/default/locale, some older versions use /etc/environment. Alternatively on may set it in the .profile, too.

Assuming you are the only user on your system, I'd suggest using /etc/defaul/locale. Date is managed with the LC_TIME-value, i.e. adapt the value to

 LC_TIME="en_US.UTF8"

(quotes optional). You may need to reload your profile - simplest by a relogin.

6
  • Thanks for this. I updated LC_TIME value and restarted machine. The login screen date/time is now in English. As soon as I logged in the calendar changed to Thai language. When I run locale command it shows the old value of LC_TIME=th_TH.UTF-8. However, when I open the /etc/default/locale it shows my updated value of LC_TIME=en_US.UTF-8. Sep 28, 2021 at 7:55
  • Looks like something is overriding it.. Sep 28, 2021 at 7:56
  • I changed every single entry in /etc/default/locale to equal en_US.UTF-8, but after logging in the locale command still shows th_TH.UTF-8. Sep 28, 2021 at 8:06
  • I think it is gnome: if gsettings get org.gnome.system.locale region returns the Thai locale, set it to US via gsettings set org.gnome.system.locale region "en_US.UTF-8" .
    – FelixJN
    Sep 28, 2021 at 8:19
  • Haven't tried to look at gsettings yet. In /etc/locale.gen I removed the Thai locale (left only en_US), ran locale-gen. After re-login language seems to be correct. But now terminal doesn't start, sigh.. Sep 28, 2021 at 8:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .