#219 Language KCM should install `langpacks-<lang>` package after adding language to system
Opened 2 years ago by soredake. Modified 4 months ago

Originally reported here: https://bugs.kde.org/show_bug.cgi?id=455217

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/

Related: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/560 https://bugs.kde.org/show_bug.cgi?id=431292


Ubuntu with GNOME have similar tool https://packages.ubuntu.com/jammy/language-selector-gnome, and OpenSUSE too have ability to install langpacks in yast https://documentation.suse.com/sles/15-SP1/html/SLES-all/cha-yast-lang.html, and manjaro/endeavouros

For us, we just need to call back to PackageKit to install the packages. We don't have to do complicated gymnastics like Ubuntu does. I'm a little surprised that there's no simple Discover helper thing for this that we could use.

@apol is there a relatively easy way for KCMs to do simple requests to Discover like what's needed for this?

We could look into putting together a helper kind of app that just installs 1 file and tells you that your system is ruined if it fails. :D

As is, the easy thing to do is to make sure it's available through appstream and call "plasma-discover appstream://my-awesome-language".

FWIW, the hard part about all these things is that every distro has more or less the same thing there, they're all named slightly different and it's all complex that way.

Metadata Update from @siosm:
- Issue tagged with: kinoite

4 months ago

The thing is that we pre-install i18n support (locales, fonts, input-methods, firefox-langpacks) for like 90% of our global users (random guestimate - probably higher) anyway already: langpacks are more like extra nice-to-have's like additional fonts, okay spelling-checking is one important area here, and translations for a few less common packages that have langpack subpackages: but the vast majority of packages in Fedora just bundle translations anyway.

Okay and also kde-i18n-* and kde-l10n-* I guess here.

Login to comment on this ticket.

Metadata
Boards 1
Kinoite Status: Backlog