I discussed that with Michael again, and writing this as an aptdaemon plugin is a lot more elegant than modifying the core aptdaemon code, so moving this to language-selector.
As for performance, I now rewrote the check-language-support logic from scratch, as the l-s code was really horrible, slow, and hard to maintain. The replacement is much smaller, (IMHO) easy to read and understand, has full test coverage, and is fast. I added a performance test to the test suite which does a full check of all missing lang support packs for all installed packages for all installed locales, and it takes a mere 8 ms on my system (under the condition that we have an initialized apt.Cache() object, which is given in an aptdaemon plugin). I think this is a negligible overhead and well worth spending. ** Changed in: aptdaemon (Ubuntu Precise) Status: Triaged => Won't Fix ** Changed in: aptdaemon (Ubuntu Precise) Assignee: Martin Pitt (pitti) => (unassigned) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to language-selector in Ubuntu. https://bugs.launchpad.net/bugs/396414 Title: When KDE or gnome apps get installed, the corresponding language-packs should be pulled automatically Status in One Hundred Paper Cuts: Invalid Status in Ubuntu Translations: Triaged Status in “aptdaemon” package in Ubuntu: Triaged Status in “language-selector” package in Ubuntu: In Progress Status in “aptdaemon” source package in Precise: Won't Fix Status in “language-selector” source package in Precise: In Progress Bug description: When you install ubuntu and you have chosen a certain language, it should install also the package language-pack-kde-?? (where ??=your country letters, for example es for spanish). I think that it should be on obiquity. It is very unlikely for an new user to find the language-pack-kde-?? from Synaptic so he can install it. The problem appears if a user installs a kde application, lets say kturtle. There is no way of installing the language support for an kde application. To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/396414/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp