Ask Your Question
1

English for UI - local regional settings for date, sorting etc.

asked 2017-12-20 03:13:14 -0600

ceres2009 gravatar image

Hi,

i'm trying to achive the following setup:

  1. english as a language setting for the whole UI.
  2. german for all other locale settings like Date format, week start, currency, number.

I set this in KDE settings, but all formats are apparently en_US. How and where would i persistently set this settings? Here's my locale output:

 > locale
LANG=en_DE.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=en_US.UTF-8

heres the /etc/locale.conf ...

LANG=en_US.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8

Anybody has an hint, why actual local settings vary from /etc/locale.conf

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2017-12-20 11:12:16 -0600

bfay gravatar image

So what about the following:

$ sudo localectl set-locale \
LANG=en_US.UTF-8 \
LC_ALL=de_DE.UTF-8

NOTE: LC_ALL automatically overrides all other LC_XXX variables but LANG until LC_ALL is set to a null string.

and

$ sudo localectl set-keymap 'de'

Maybe one should erase current Language= value in /var/lib/AccountsService/users/* like this:

$ sudo sed -i '/^Language=/s/\(^Language=\)\(.*$\)/\1/' /var/lib/AccountsService/users/*

Then reboot.

edit flag offensive delete link more

Comments

Hi, sry for delay i tried today.

> sudo localectl set-locale LC_ALL=de_DE.UTF-8
Failed to issue method call: Invalid Locale data.

seems to fail to set this specific variable. I'm pretty sure that's the correct value.. edit: after a locale -a i got de_DE.utf8 as a possibility, but that string fails with the same message.

ceres2009 gravatar imageceres2009 ( 2017-12-27 08:49:37 -0600 )edit
0

answered 2017-12-20 05:26:41 -0600

bfay gravatar image

Would you like to get LANG=en_US.UTF-8 and LC_*=de_DE.UTF-8 system wide (VT + X11) or only for users' graphical session? Also, what keyboard layout do you use?

edit flag offensive delete link more

Comments

1

yes, that would be my goal (VT + X11).
I use german keyboard layout.

ceres2009 gravatar imageceres2009 ( 2017-12-20 08:27:38 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-12-20 03:13:14 -0600

Seen: 257 times

Last updated: Dec 20 '17