From 4fe604bfe842a84bd727928c1b573fa075a7bb09 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Fri, 31 Aug 2012 18:14:48 +0200 Subject: [PATCH] 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 --- js/ui/status/keyboard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index 4299af620..3dd7e3f5c 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -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(); } }