aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2013-08-28 23:08:44 +0800
committerWilliam Hua <william.hua@canonical.com>2013-08-28 23:08:44 +0800
commitf1416ee304e6025e9b65270e6ab5810153632ad4 (patch)
treed8e2f242f9513ec74b2b1bfef1c8e56cf61f26a4
parente322058091faf384ee8e8ba21dc09aa2203656c6 (diff)
downloadayatana-indicator-keyboard-f1416ee304e6025e9b65270e6ab5810153632ad4.tar.gz
ayatana-indicator-keyboard-f1416ee304e6025e9b65270e6ab5810153632ad4.tar.bz2
ayatana-indicator-keyboard-f1416ee304e6025e9b65270e6ab5810153632ad4.zip
Append input source suffix to accessible-desc.
-rw-r--r--lib/main.vala3
-rw-r--r--po/indicator-keyboard.pot12
2 files changed, 10 insertions, 5 deletions
diff --git a/lib/main.vala b/lib/main.vala
index d8b6588e..cf196650 100644
--- a/lib/main.vala
+++ b/lib/main.vala
@@ -366,7 +366,8 @@ public class Indicator.Keyboard.Service : Object {
var builder = new VariantBuilder (new VariantType ("a{sv}"));
builder.add ("{sv}", "visible", new Variant.boolean (visible));
if (name != null) {
- builder.add ("{sv}", "accessible-desc", new Variant.string ((!) name));
+ var suffix = _ ("input source");
+ builder.add ("{sv}", "accessible-desc", new Variant.string (@"$((!) name) $suffix"));
}
if (icon != null) {
builder.add ("{sv}", "icon", ((!) icon).serialize ());
diff --git a/po/indicator-keyboard.pot b/po/indicator-keyboard.pot
index 3cbc4c2e..47daa8d0 100644
--- a/po/indicator-keyboard.pot
+++ b/po/indicator-keyboard.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-08-22 15:09+0800\n"
+"POT-Creation-Date: 2013-08-28 23:07+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,14 +17,18 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
-#: ../lib/main.c:1449 ../lib/main.vala:342
+#: ../lib/main.c:1874 ../lib/main.vala:369
+msgid "input source"
+msgstr ""
+
+#: ../lib/main.c:2229 ../lib/main.vala:467
msgid "Character Map"
msgstr ""
-#: ../lib/main.c:1451 ../lib/main.vala:343
+#: ../lib/main.c:2232 ../lib/main.vala:468
msgid "Keyboard Layout Chart"
msgstr ""
-#: ../lib/main.c:1453 ../lib/main.vala:344
+#: ../lib/main.c:2235 ../lib/main.vala:469
msgid "Text Entry Settings..."
msgstr ""