You are not logged in.

#1 2024-07-23 10:43:26

Spring
Member
Registered: 2024-07-23
Posts: 7

Wrong locale on buttons (reboot, shutdown) in SDDM greeter Plasma 6

Hello. When the system starts, on the logon screen (breeze, plasma 6) the buttons (reboot, shutdown) use an English language that is different from the system one, but date and time correctly. Moreover, on the lockscreen and when you turn it off, everything is fine, the correct language is used. The language settings in the system are correct. This behavior began after some update.

Offline

#2 2024-07-23 12:27:22

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,081

Re: Wrong locale on buttons (reboot, shutdown) in SDDM greeter Plasma 6

KDE Plasma has a history of not cooperating well with system locale settings, especially if those haven't been set correctly before plasma starts.

Please post the outputs of

$ locale
$ localedef --list-archive
$ localectl list-locales

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2024-07-23 12:54:52

Spring
Member
Registered: 2024-07-23
Posts: 7

Re: Wrong locale on buttons (reboot, shutdown) in SDDM greeter Plasma 6

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

$ localedef --list-archive
en_US.utf8
ru_RU.utf8

$ localectl list-locales
C.UTF-8
en_US.UTF-8
ru_RU.UTF-8

Offline

#4 2024-07-24 12:31:56

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,081

Re: Wrong locale on buttons (reboot, shutdown) in SDDM greeter Plasma 6

Those look fine.

that indicates 2 possible causes :

- sddm starts before the locale settings are applied fully
- sddm has a bug

The first case is the simplest one to test for :
Append systemd.unit=multi-user.target as a kernel parameter to your bootcommand line.
How to do that can be found in the documentation for your chosen boot method.

The parameter will ensure sddm is not started automatically and you'll be in a text login screen.
wait  a minute to allow the system to settle, then login as root and start sddm manually .
Do button texts now match your language ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2024-07-24 13:32:50

Spring
Member
Registered: 2024-07-23
Posts: 7

Re: Wrong locale on buttons (reboot, shutdown) in SDDM greeter Plasma 6

Thank you. No, everything is the same. This never happened on Plasma 5. On Plasma 6, until recently (after some update) everything was fine too. Maybe try reinstalling sddm?

Offline

#6 2024-07-24 18:18:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,933

Re: Wrong locale on buttons (reboot, shutdown) in SDDM greeter Plasma 6

So the DM runs on C/en_* but the session on ru_RU
=>

localectl

Offline

#7 2024-07-24 18:47:27

Spring
Member
Registered: 2024-07-23
Posts: 7

Re: Wrong locale on buttons (reboot, shutdown) in SDDM greeter Plasma 6

$ localectl
System Locale: LANG=ru_RU.UTF-8
VC Keymap: ru
X11 Layout: us

$ locale -a
C
C.utf8
en_US.utf8
POSIX
ru_RU.utf8

$ cat ~/.config/plasma-localerc
[Formats]
LANG=ru_RU.UTF-8

The most interesting thing is that this behavior is observed on two installed archlinux with plasma 6.

Last edited by Spring (2024-07-24 19:03:30)

Offline

#8 2024-07-24 18:55:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,933

Re: Wrong locale on buttons (reboot, shutdown) in SDDM greeter Plasma 6

So it's set systemwide
If you run

sddm-greeter-qt6 --test-mode --theme /usr/share/sddm/themes/breeze

is that properly translated?

Offline

#9 2024-07-24 19:04:42

Spring
Member
Registered: 2024-07-23
Posts: 7

Re: Wrong locale on buttons (reboot, shutdown) in SDDM greeter Plasma 6

no, the same with english.

Offline

#10 2024-07-25 06:23:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,933

Re: Wrong locale on buttons (reboot, shutdown) in SDDM greeter Plasma 6

So it's not the locale environment, most likely those strings are just hardcoded??

sddm-greeter-qt6 --test-mode --theme /usr/share/sddm/themes/elarun

Offline

#11 2024-07-25 13:04:26

Spring
Member
Registered: 2024-07-23
Posts: 7

Re: Wrong locale on buttons (reboot, shutdown) in SDDM greeter Plasma 6

I don't have a theme other than Breeze. But maybe the problem is this theme.

Offline

#12 2024-07-25 16:17:15

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,933

Re: Wrong locale on buttons (reboot, shutdown) in SDDM greeter Plasma 6

elarun should come w/ sddm?

Offline

#13 2024-07-25 19:13:02

Spring
Member
Registered: 2024-07-23
Posts: 7

Re: Wrong locale on buttons (reboot, shutdown) in SDDM greeter Plasma 6

I copied and applied the Breeze theme from Fedora KDE (the version there is older) and some of the text on the buttons became in Russian, and some in English. So the problem is probably in the theme or in SDDM.

Offline

Board footer

Powered by FluxBB