[polari/wip/fmuellner/combined-gsoc: 68/103] Notifications now use format translatable strings and format strings.



commit 3ffe213f53648bb78b5f0d96fd5bd2a3fa5bea50
Author: raresv <rares visalom gmail com>
Date:   Sun Jul 17 17:10:29 2016 +0300

    Notifications now use format translatable strings and format strings.

 src/userTracker.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/userTracker.js b/src/userTracker.js
index a38819b..aaf074b 100644
--- a/src/userTracker.js
+++ b/src/userTracker.js
@@ -386,8 +386,8 @@ const UserTracker = new Lang.Class({
 
     emitWatchedUserNotification: function (room, member) {
         let notification = new Gio.Notification();
-        notification.set_title("User is online");
-        notification.set_body("User " + member.alias + " is online.");
+        notification.set_title(_("User is online"));
+        notification.set_body(_("User %s is now online.").format(member.alias));
 
         let param = GLib.Variant.new('(ssu)',
                                      [ this._account.get_object_path(),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]