From 9bc83539d124f9645dc92e9e39001cb0192dae61 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Fri, 7 Apr 2017 11:09:47 +0200 Subject: Gettext support --- main/src/ui/notifications.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main/src/ui/notifications.vala') diff --git a/main/src/ui/notifications.vala b/main/src/ui/notifications.vala index 3846c7ba..029a4b33 100644 --- a/main/src/ui/notifications.vala +++ b/main/src/ui/notifications.vala @@ -56,9 +56,9 @@ public class Notifications : Object { } private void on_received_subscription_request(Jid jid, Account account) { - Notify.Notification notification = new Notify.Notification("Subscription request", jid.bare_jid.to_string(), null); + Notify.Notification notification = new Notify.Notification(_("Subscription request"), jid.bare_jid.to_string(), null); notification.set_image_from_pixbuf((new AvatarGenerator(40, 40)).draw_jid(stream_interactor, jid, account)); - notification.add_action("accept", "Accept", () => { + notification.add_action("accept", _("Accept"), () => { stream_interactor.get_module(PresenceManager.IDENTITY).approve_subscription(account, jid); if (stream_interactor.get_module(RosterManager.IDENTITY).get_roster_item(account, jid) == null) { @@ -71,7 +71,7 @@ public class Notifications : Object { notification.close(); } catch (Error error) { } }); - notification.add_action("deny", "Deny", () => { + notification.add_action("deny", _("Deny"), () => { stream_interactor.get_module(PresenceManager.IDENTITY).deny_subscription(account, jid); try { notification.close(); -- cgit v1.2.3-70-g09d2