aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2013-08-29 03:42:45 +0000
committerTarmac <Unknown>2013-08-29 03:42:45 +0000
commitb0f1037825003bfb205fc878812e7d47363e817b (patch)
tree2a084dad94fcf5ac54b1935c11102a31f041c6b2
parentee3f00b79a6108e8cb0e1884bf9bec54703e7fc8 (diff)
parent807c6d8708d93d49c20ab14f13e343828d0bf3df (diff)
downloadayatana-indicator-keyboard-b0f1037825003bfb205fc878812e7d47363e817b.tar.gz
ayatana-indicator-keyboard-b0f1037825003bfb205fc878812e7d47363e817b.tar.bz2
ayatana-indicator-keyboard-b0f1037825003bfb205fc878812e7d47363e817b.zip
Append input source suffix to accessible-desc as described in design spec.
Approved by Ted Gould, PS Jenkins bot.
-rw-r--r--lib/main.vala3
-rw-r--r--po/indicator-keyboard.pot13
2 files changed, 11 insertions, 5 deletions
diff --git a/lib/main.vala b/lib/main.vala
index d8b6588e..7aac365c 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 description = _ ("%s input source").printf ((!) name);
+ builder.add ("{sv}", "accessible-desc", new Variant.string (description));
}
if (icon != null) {
builder.add ("{sv}", "icon", ((!) icon).serialize ());
diff --git a/po/indicator-keyboard.pot b/po/indicator-keyboard.pot
index 3cbc4c2e..df7dd668 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-29 10:20+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,19 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
-#: ../lib/main.c:1449 ../lib/main.vala:342
+#: ../lib/main.c:1870 ../lib/main.vala:369
+#, c-format
+msgid "%s input source"
+msgstr ""
+
+#: ../lib/main.c:2220 ../lib/main.vala:467
msgid "Character Map"
msgstr ""
-#: ../lib/main.c:1451 ../lib/main.vala:343
+#: ../lib/main.c:2223 ../lib/main.vala:468
msgid "Keyboard Layout Chart"
msgstr ""
-#: ../lib/main.c:1453 ../lib/main.vala:344
+#: ../lib/main.c:2226 ../lib/main.vala:469
msgid "Text Entry Settings..."
msgstr ""