diff options
author | fiaxh <git@mx.ax.lt> | 2017-04-07 11:09:47 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-04-10 15:47:21 +0200 |
commit | 9bc83539d124f9645dc92e9e39001cb0192dae61 (patch) | |
tree | a4b22a8ea3e10b6d0050c2e5669729919a1cb477 /main/src/ui/notifications.vala | |
parent | d8881c4b16a1cd376dd69304c44444aee581da32 (diff) | |
download | dino-9bc83539d124f9645dc92e9e39001cb0192dae61.tar.gz dino-9bc83539d124f9645dc92e9e39001cb0192dae61.zip |
Gettext support
Diffstat (limited to 'main/src/ui/notifications.vala')
-rw-r--r-- | main/src/ui/notifications.vala | 6 |
1 files changed, 3 insertions, 3 deletions
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(); |