From bbbd924bdfd7865bb4dca66c8568d9b386464ed8 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 5 Jun 2017 16:54:56 -0700 Subject: [PATCH] bookend: Add i18n tags for bookend notices. --- static/js/message_list.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/static/js/message_list.js b/static/js/message_list.js index 05d698f1fa..a23ac6e852 100644 --- a/static/js/message_list.js +++ b/static/js/message_list.js @@ -343,15 +343,18 @@ exports.MessageList.prototype = { }, subscribed_bookend_content: function (stream_name) { - return "You subscribed to stream " + stream_name; + return i18n.t("You subscribed to stream __stream__", + {stream: stream_name}); }, unsubscribed_bookend_content: function (stream_name) { - return "You unsubscribed from stream " + stream_name; + return i18n.t("You unsubscribed from stream __stream__", + {stream: stream_name}); }, not_subscribed_bookend_content: function (stream_name) { - return "You are not subscribed to stream " + stream_name; + return i18n.t("You are not subscribed to stream __stream__", + {stream: stream_name}); }, // Maintains a trailing bookend element explaining any changes in