[gnome-shell] status/keyboard: Make IBus display strings consistent with g-c-c
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] status/keyboard: Make IBus display strings consistent with g-c-c
- Date: Wed, 12 Sep 2012 16:56:43 +0000 (UTC)
commit 4fe604bfe842a84bd727928c1b573fa075a7bb09
Author: Rui Matos <tiagomatos gmail com>
Date: Fri Aug 31 18:14:48 2012 +0200
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 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js
index 4299af6..3dd7e3f 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();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]