Bug 455217

Summary: Language KCM should install `langpacks-<lang>` package on fedora after adding language to system
Product: [Applications] systemsettings Reporter: soredake <katyaberezyaka>
Component: kcm_languageAssignee: Eike Hein <hein>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: katyaberezyaka, plasma-bugs, sitter
Priority: NOR    
Version: 5.24.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=431292
Latest Commit: Version Fixed In:

Description soredake 2022-06-13 14:53:17 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
After adding language in kcm_language it need to install `langpacks-<lang>` to complete language support, langpacks-<lang> will install needed fonts and input methods for this language (https://src.fedoraproject.org/rpms/langpacks/blob/rawhide/f/langpacks.spec), fedora with gnome doing this already https://sundeep.co.in/blog/2019/07/31/langpacks-autoinstall/

STEPS TO REPRODUCE
1. Add `japanese` language to system for example.
2. Reboot.
3. There's no `langpacks-ja` package installed.

OBSERVED RESULT
No `langpacks-<lang>` package is installed in fedora. 

EXPECTED RESULT
`langpacks-<lang>` package should be installed in fedora. 

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora KDE 36
(available in About System)
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Related: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/560 Similar bug but for ubuntu https://bugs.kde.org/show_bug.cgi?id=431292
Comment 1 Harald Sitter 2022-06-13 15:08:54 UTC
Fedora needs to come up with that code please file a bug with them.
Comment 2 soredake 2022-06-13 15:14:42 UTC
Okay... https://pagure.io/fedora-kde/SIG/issue/219
Comment 3 soredake 2022-06-13 15:19:56 UTC
Why similar bug for ubuntu is not closed as resolved downstream then? https://bugs.kde.org/show_bug.cgi?id=431292
Comment 4 Harald Sitter 2022-06-13 16:31:09 UTC
https://bugs.kde.org/show_bug.cgi?id=431292#c12
Comment 5 soredake 2022-06-13 16:52:34 UTC
(In reply to Harald Sitter from comment #4)
> https://bugs.kde.org/show_bug.cgi?id=431292#c12

But langpacks-lang is not about locales
Comment 6 soredake 2022-06-13 17:09:58 UTC
I don't see what's wrong with systemsettings installing langpacks package after adding a language (leaving user with no fonts needed to display this language is not good).
Comment 7 soredake 2022-06-13 17:52:08 UTC
dnf cannot know what languages are user enabled in kde, so auto-installing packages can be done only in systemsetting or dolphin (gnome does this in gnome software)
Comment 8 Harald Sitter 2022-06-13 18:12:48 UTC
"Fedora needs to come up with that code"