Cannot set locale in KDE System Settings

Hi!

I have recently installed the KDE Plasma edition of AlmaLinux 9 from the Live CD.
Updates have been installed with dnf upgrade, also did a reboot.
The system will be used by someone who doesnt know english, so I wanted to set the language in the System Settings app, Regional Settings menu, but it failed. It shows this error message in a red box:

Could not find the system’s available locales using the localectl tool. Please file a bug report about this at https://bugs.kde.org

I have found this bug on KDE’s bug tracker to be the exact same thing, but they didnt note a workaround so I dont know what to do.

How could I set up the language for KDE and other apps?
I want to set the language both for the user account and for the SDDM display manager. If we can do it the same way KDE does but manually, the SDDM part should be easy because KDE has a function to copy settings over there.

Curiously an additional reboot seems to have fixed the problem, the language just changed to the one I tried to set up. I did not expect that because when the error was shown, the currently selected language did not get updated to the new one.

If someone would have a more severe issue, here are instructions on how to set the locales manually: 479213 – Cannot change kde languages because of locale

And finally, the SDDM settings in KDE System Settings does not apply locale settings to SDDM, probably because it has no relevant configuration.
There is a workaround for applying a custom locale to it, it can be applied as a drop-in file with systemctl edit sddm.service.

1 Like