After updating to Ubuntu 14.04 I experienced some serious annoyances / problems with the keyboard layout. My swiss keyboard was always put back to the english layout.
After a few unsuccessfull attempts I was able to manage the get it straight by changing the settings in the ibus panel. I just started a terminal, entered:
and deleted the english layout completly. Since then they keyboard layout remained swiss.