[polari/wip/raresv/popoverRebasedOnTracker] Notifications now use format translatable strings and format strings.
- From: Rares Visalom <raresvisalom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/raresv/popoverRebasedOnTracker] Notifications now use format translatable strings and format strings.
- Date: Sun, 17 Jul 2016 14:10:43 +0000 (UTC)
commit 22c426cfd9f5829853d70990d697e19bf3c8d01d
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]