From 5f424259828bce43b7d532a6face244ac9f9c36d Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Mon, 17 Oct 2022 17:17:55 +0200 Subject: [PATCH] filter: Update default title for `streams:public` narrow. Updates default title for `streams:public` narrow to be "Messages in all public streams". Prep commit for rewriting `update_narrow_title` to use `filter.get_title` as a helper for setting browser title text. --- frontend_tests/node_tests/filter.js | 2 +- static/js/filter.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend_tests/node_tests/filter.js b/frontend_tests/node_tests/filter.js index 7583acd9c5..9bddb07fc7 100644 --- a/frontend_tests/node_tests/filter.js +++ b/frontend_tests/node_tests/filter.js @@ -1536,7 +1536,7 @@ test("navbar_helpers", () => { operator: streams_public, is_common_narrow: true, icon: undefined, - title: "translated: Public stream messages in organization", + title: "translated: Messages in all public streams", redirect_url_with_search: "/#narrow/streams/public", }, { diff --git a/static/js/filter.js b/static/js/filter.js index ffb7e5c500..b433e2845d 100644 --- a/static/js/filter.js +++ b/static/js/filter.js @@ -678,7 +678,7 @@ export class Filter { case "in-all": return $t({defaultMessage: "All messages including muted streams"}); case "streams-public": - return $t({defaultMessage: "Public stream messages in organization"}); + return $t({defaultMessage: "Messages in all public streams"}); case "stream": if (!this._sub) { return $t({defaultMessage: "Unknown stream"});