Bug 428590 - Provide ability to apply languages system-wide
Summary: Provide ability to apply languages system-wide
Status: ASSIGNED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_regionandlang (show other bugs)
Version: 5.19.5
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Eike Hein
URL:
Keywords:
: 448056 477134 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-11-02 08:02 UTC by soredake
Modified: 2023-11-18 11:28 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Gnome has this feature (34.66 KB, image/png)
2021-01-09 10:10 UTC, soredake
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soredake 2020-11-02 08:02:36 UTC
SUMMARY
Locales in /etc/default/locale are configured only during distro install, after install there is no gui in systemsettings to configure locales in this file, and locales in this affects language used in sddm.

STEPS TO REPRODUCE
1. Install kubuntu
2. Go to systemsettings
3. No way to configure locales from this file.

OBSERVED RESULT
No way to configure.

EXPECTED RESULT
Having a way to configure

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 20.10
(available in About System)
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.75.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
Comment 1 David Edmundson 2020-11-03 00:08:40 UTC
Can you expand on the user facing issue we want to fix?
Comment 2 soredake 2020-11-03 15:59:47 UTC
For example, i want to change the language of sddm, how do i do it without command line?
Comment 4 Christoph Feck 2020-11-10 20:57:03 UTC
Changing the system's locale requires root permissions. It is not the responsibility of Plasma to configure it.

Not sure why you are citing Minecraft issues. Do you run Minecraft as root, or why is the locale of the user not respected?

Please clarify which issue you want to fix by changing the system's locale.
Comment 5 soredake 2021-01-05 16:06:24 UTC
Mixed locales from system (uk_UA) and from user (en_US) make minecraft crash, thus i wanted ability to configure system locales as kubuntu installer set it wrong (automatically).
And there is no way other than editing system locale settings to change sddm language.
Comment 6 soredake 2021-01-09 10:07:36 UTC
(In reply to Christoph Feck from comment #4)
> Changing the system's locale requires root permissions. It is not the
> responsibility of Plasma to configure it.
> 
> Not sure why you are citing Minecraft issues. Do you run Minecraft as root,
> or why is the locale of the user not respected?
> 
> Please clarify which issue you want to fix by changing the system's locale.

Gnome, for example, has option "apply to system" in their language-selector-gnome to set language/locale setting globally, why kde cannot have this?
Comment 7 soredake 2021-01-09 10:10:40 UTC
Created attachment 134679 [details]
Gnome has this feature
Comment 8 soredake 2021-01-09 10:14:28 UTC
Can someone reopen this?
Comment 9 Christoph Feck 2021-01-09 10:57:58 UTC
Please report this issue to minecraft developers.
Comment 10 soredake 2021-01-10 15:46:27 UTC
Anyway applying locale settings system-wide is needed for https://bugs.kde.org/show_bug.cgi?id=422339 as sddm reads system-wide /etc/default/locale to set language/regional settings
Comment 11 Filip Fila 2021-01-10 16:06:28 UTC
This is a legitimate issue and at least partly our issue, let's not dismiss it by saying it's Minecraft's problem. Here's a real life situation:

- you're good in English
- you've installed Linux and set up English as the locale
- your login screen is in English and uses its formats
- other users (family) that are going to be using the computer turn up
- they don't want a login screen in English because they don't know it
- but you can't change it anywhere in the GUI

I've tried to help by having the user locale be synced to SDDM. I was not successful, but we should try to come up with something nevertheless.

The argument that the fact that changing the system's locale requires root permission makes it not our responsibility can't really hold because our entire SDDM KCM is already doing root things.
Comment 12 Harald Sitter 2021-01-11 08:17:41 UTC
FTR 

https://www.freedesktop.org/software/systemd/man/org.freedesktop.locale1.html

SetLocale is polkit backed.
Comment 13 Nate Graham 2022-01-13 04:52:34 UTC
*** Bug 448056 has been marked as a duplicate of this bug. ***
Comment 14 Neal Gompa 2023-04-07 11:50:35 UTC
I've received a report downstream in Fedora about this: https://bugzilla.redhat.com/show_bug.cgi?id=2177257

It'd be great to see some progress on this and bug 422339 at some point.
Comment 15 Bug Janitor Service 2023-06-29 05:08:16 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3036
Comment 16 Nate Graham 2023-11-17 20:32:43 UTC
*** Bug 477134 has been marked as a duplicate of this bug. ***
Comment 17 Nickolay Platonov 2023-11-18 11:15:34 UTC
Just filed a duplicate of this one.

My use case is that I've specified a wrong region during OS installation (left the default choice, based on location). Then after the installation, I've changed the region and format to the ones I actually can read.

Those formats were updated everywhere, except the login screen. Having a string in the language I don't know on the login screen was pretty annoying, I was even thinking about re-installing the whole system because of that.

I believe there should be some way to solve this, perhaps an extra button on the "Formats" screen, like "Apply system-wide"?
Comment 18 hanyoung 2023-11-18 11:28:54 UTC
(In reply to Nickolay Platonov from comment #17)
> Just filed a duplicate of this one.
> 
> My use case is that I've specified a wrong region during OS installation
> (left the default choice, based on location). Then after the installation,
> I've changed the region and format to the ones I actually can read.
> 
> Those formats were updated everywhere, except the login screen. Having a
> string in the language I don't know on the login screen was pretty annoying,
> I was even thinking about re-installing the whole system because of that.
> 
> I believe there should be some way to solve this, perhaps an extra button on
> the "Formats" screen, like "Apply system-wide"?

Exactly: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3036