10.10
Yes, the icon doesn't reflect the language chosen. I think it may have something to do with the fact that showing "flags" would often be inappropriate. (Examples: flag of Great Britain in India, flag of Germany in Austria, flag of France in Senegal).
The current metaphor, i.e. KEYBOARD → Langauge is very much in accordance with user experience guidelines.
The behaviour you're describing was removed quite some time ago. It was another application (can't remember the name) that dealt with keyboard layouts then. (At least I remember something like that, I'm not quite sure now come to think of it)
What i did to get the above screen shot was go to Keyboard-Layouts, select add, Hebrew/Israel and add it to the list. My system has been upgraded since 9.10, so it should be the same on nearly every Ubuntu installation.
The old behaviour is still lurking in the system. If you want the indicator to show Flags, you can open gconf-editor
, got to /desktop/peripherals/keyboard/indicator
and enable "showFlags". However, you'll need the relevant flags to be in /home/<username>/.icons/flags
(press CTRL+H to show directories that start with a period). The flag of israel should be named il.png
(which is israels ISO 3166-1 alpha-2 country code).
I have an idea that may appear somewhat counterintuitive...
Open the Text Entry window and add English (US) to the list of input sources, while keeping Spanish at the top of the list. That's how I have it setup myself (even if I have Swedish instead of Spanish) and it usually works fine.
Best Answer
ES
There is not one-to-one correlation between languages, countries, and keyboard layouts.
Some languages are associated with multiple keyboard layouts, e.g. English: USA and United Kingdom. Some keyboard layouts are associated with multiple languages, e.g. Kazakhstan: Kazakh and Russian. Many keyboard layouts are associated with multiple countries, e.g. Latin American…
The Latin American (
latam
) keyboard layout is associated with all of the following countries:AR
,BO
,CL
,CO
,CR
,CU
,DO
,EC
,GT
,HN
,HT
,MX
,NI
,PA
,PE
,PR
,PY
,SV
,US
,UY
,VE
and the following languages:
spa
So in this case, you are lucky. Latin American is only associated with one language. "es" is your two-letter language code.
That aside, I would recommend against using language codes to indicate keyboard layouts. There is a separate system already in place for abbreviating the names of the layouts themselves. See
shortDescription
in xkb-data'sbase.xml
.