[polari/wip/fmuellner/combined-gsoc: 80/136] Notifications now use	format translatable strings and format strings.
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [polari/wip/fmuellner/combined-gsoc: 80/136] Notifications now use	format translatable strings and format strings.
- Date: Tue, 26 Jul 2016 23:22:42 +0000 (UTC)
commit 448d860ad9b8167fc19379742727b5b924308303
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]