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:
parent
49df72ceda
commit
4fe604bfe8
@ -241,8 +241,10 @@ const InputSourceIndicator = new Lang.Class({
|
|||||||
} else if (type == INPUT_SOURCE_TYPE_IBUS) {
|
} else if (type == INPUT_SOURCE_TYPE_IBUS) {
|
||||||
let engineDesc = this._ibusManager.getEngineDesc(id);
|
let engineDesc = this._ibusManager.getEngineDesc(id);
|
||||||
if (engineDesc) {
|
if (engineDesc) {
|
||||||
|
let language = IBus.get_language_name(engineDesc.get_language());
|
||||||
|
|
||||||
info.exists = true;
|
info.exists = true;
|
||||||
info.displayName = engineDesc.get_longname();
|
info.displayName = language + ' (' + engineDesc.get_longname() + ')';
|
||||||
info.shortName = engineDesc.get_symbol();
|
info.shortName = engineDesc.get_symbol();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user