aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2013-08-29 10:22:25 +0800
committerWilliam Hua <william.hua@canonical.com>2013-08-29 10:22:25 +0800
commit807c6d8708d93d49c20ab14f13e343828d0bf3df (patch)
tree7854b72a54a7553bc4d1345be6d0396b22c13ddf /lib
parentf1416ee304e6025e9b65270e6ab5810153632ad4 (diff)
downloadayatana-indicator-keyboard-807c6d8708d93d49c20ab14f13e343828d0bf3df.tar.gz
ayatana-indicator-keyboard-807c6d8708d93d49c20ab14f13e343828d0bf3df.tar.bz2
ayatana-indicator-keyboard-807c6d8708d93d49c20ab14f13e343828d0bf3df.zip
Use printf-style format string instead.
Diffstat (limited to 'lib')
-rw-r--r--lib/main.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/main.vala b/lib/main.vala
index cf196650..7aac365c 100644
--- a/lib/main.vala
+++ b/lib/main.vala
@@ -366,8 +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) {
- var suffix = _ ("input source");
- builder.add ("{sv}", "accessible-desc", new Variant.string (@"$((!) name) $suffix"));
+ 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 ());