Bug 174753 - can only add 4 languages in max
Summary: can only add 4 languages in max
Status: RESOLVED FIXED
Alias: None
Product: kxkb
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Andriy Rysin
URL:
Keywords:
: 189130 189831 212374 251043 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-10 00:16 UTC by Erik Martens
Modified: 2011-09-03 11:54 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Martens 2008-11-10 00:16:47 UTC
Version:            (using KDE 4.1.2)
OS:                Linux
Installed from:    Ubuntu Packages

In the configuration dialog, i can maximally have 4 keyboard layouts. Trying to add a fifth one, pressing the 'right arrow' in the dialog window, nothing happens. Removing one of the four, I can again add a 4th language, but that's it. (yes, I know, I'm using a lot of languages ...)
Comment 1 Médéric Boquien 2008-11-10 00:22:33 UTC
Hello,

I confirm the bug in KDE SVN trunk r881402. It seems annoying indeed.

Thanks.
Comment 2 Glenn R Williams 2008-12-17 00:15:12 UTC
I confirm the bug on Kubuntu 8.10, KDE 4.1.3 as well. I too use a lot of languages and there is no way around it other than swapping the keyboards in and out in the config.
Comment 3 Andriy Rysin 2009-01-10 18:25:06 UTC
This should be fixed in xorg, currently xkb only supports up to 4 groups.

See http://bugs.freedesktop.org/show_bug.cgi?id=19501
Comment 4 Erik 2009-02-28 21:08:47 UTC
This is consistent with the observation that it's the same issue in KDE 3.5.X, I'm afraid.
Comment 5 Alex Dănilă 2009-05-22 16:10:57 UTC
*** Bug 189831 has been marked as a duplicate of this bug. ***
Comment 6 Paul Ebermann 2009-10-30 13:24:15 UTC
I just added bug 212374, not finding this one ... but as it seems to be a duplicate to this one, I add my comment here, too.

I found a forum thread here that gives some information, and an idea how to solve it: http://forum.kde.org/viewtopic.php?f=66&t=82531
This would not need an UPSTREAM solution, which seems to be unlikely soon, given it is there categorized as "priority: low, severity: enhancement".

If this is not possible, at least give a useful error message when trying to add more than 4 layouts, and/or grey out the ">" button when there are already 4. (And add something about this limit in the help.)

In KDE 3 (I'm not sure which version is the keyboard layout manager) there IS the ability to switch between more than 4, which I would count as a "proof of concept".

So, please could someone change the status to "open"?
Comment 7 Pino Toscano 2009-12-07 10:43:14 UTC
*** Bug 212374 has been marked as a duplicate of this bug. ***
Comment 8 Pino Toscano 2010-09-13 09:05:45 UTC
*** Bug 251043 has been marked as a duplicate of this bug. ***
Comment 9 Kolbjørn Barmen 2010-09-13 13:08:08 UTC
Since there's close to zero chance that XKB will be fixed in this regard within this decade, how about (optionally) going back to what was in KDE-3, with setxkbmap being ran whenever changing layouts.
Comment 10 Andriy Rysin 2010-09-13 14:25:50 UTC
Pretty much no chance - switching layouts with setxkbmap was causing tons of issues so it's not coming back. There are some workarounds possible but nothing of them are trivial or without side effects. Patches are welcome for review though :)
Comment 11 Kolbjørn Barmen 2010-09-14 23:57:43 UTC
Right, so instead of using the obvious keyboard locale features of KDE4, one must resort to manual tinkering and create a menu with a set a flags, each associated with a given setxbkmap command line, with the added value of not having a flag indicating what layout is currently active.

The side effects don't vanish either way, as people will change keymaps anyhow, KDE4 has just chosen again to make it just a little bit harder for us, that's all.
Comment 12 Pino Toscano 2010-10-10 12:20:11 UTC
*** Bug 189130 has been marked as a duplicate of this bug. ***
Comment 13 Javier Ariza Rodriguez 2010-10-29 00:26:03 UTC
I need more than 4 layouts in kde 4..  and.. whats about create an applet, which call to xsetkbmmap to change language?
or another solution...

i'm using kubuntu in a language school where all people are foreigner. and i would like to add all languages posibles to language switcher..
Comment 14 Andriy Rysin 2010-10-30 20:54:45 UTC
I had blogged about implementation of spare layouts which hopefully cover the
need for this feature. I am planning to push this into KDE 4.6 so any feedback
is appreciated.
http://codersgrumble.blogspot.com/2010/10/kxkb-spare-layouts-poor-mans-sticky.html
Comment 15 Andriy Rysin 2010-11-02 04:29:03 UTC
With 1192111 commit in trunk "spare layouts" feature is added which also allows more than 4 layouts. I'd appreciate if somebody can give it a try before 4.6.0 is out.