status/keyboard: Make IBus display strings consistent with g-c-c

Instead of entries like "Anthy" we want "Japanese (Anthy)".

https://bugzilla.gnome.org/show_bug.cgi?id=683124
This commit is contained in:
Rui Matos 2012-08-31 18:14:48 +02:00
parent 49df72ceda
commit 4fe604bfe8

View File

@ -241,8 +241,10 @@ const InputSourceIndicator = new Lang.Class({
} else if (type == INPUT_SOURCE_TYPE_IBUS) {
let engineDesc = this._ibusManager.getEngineDesc(id);
if (engineDesc) {
let language = IBus.get_language_name(engineDesc.get_language());
info.exists = true;
info.displayName = engineDesc.get_longname();
info.displayName = language + ' (' + engineDesc.get_longname() + ')';
info.shortName = engineDesc.get_symbol();
}
}