diff --git a/web/src/message_view_header.ts b/web/src/message_view_header.ts index 4e821ec463..4eeee58cf1 100644 --- a/web/src/message_view_header.ts +++ b/web/src/message_view_header.ts @@ -65,7 +65,7 @@ function get_message_view_header_context(filter: Filter | undefined): MessageVie sub_count: "0", formatted_sub_count: "0", rendered_narrow_description: $t({ - defaultMessage: "This stream does not exist or is private.", + defaultMessage: "This channel does not exist or is private.", }), }; } diff --git a/web/src/narrow_banner.ts b/web/src/narrow_banner.ts index d22d817f44..9e3e3ac7b2 100644 --- a/web/src/narrow_banner.ts +++ b/web/src/narrow_banner.ts @@ -112,7 +112,7 @@ function pick_empty_narrow_banner(): NarrowBannerData { title: default_banner_for_multiple_filters, html: $t_html({ defaultMessage: - "

You are searching for messages that belong to more than one stream, which is not possible.

", + "

You are searching for messages that belong to more than one channel, which is not possible.

", }), }; } @@ -264,28 +264,11 @@ function pick_empty_narrow_banner(): NarrowBannerData { } if (can_toggle_narrowed_stream()) { - return { - title: $t({ - defaultMessage: - "You aren't subscribed to this stream and nobody has talked about that yet!", - }), - // TODO: Consider moving the button to be its own option in the template. - html: $t_html( - { - defaultMessage: "Subscribe", - }, - { - "z-button": (content_html) => - ``, - }, - ), - }; + return default_banner; } return { - title: $t({defaultMessage: "This stream does not exist or is private."}), + title: $t({defaultMessage: "This channel does not exist or is private."}), }; } // else fallthrough to default case diff --git a/web/tests/narrow.test.js b/web/tests/narrow.test.js index 8c6575260c..02cf10f7c2 100644 --- a/web/tests/narrow.test.js +++ b/web/tests/narrow.test.js @@ -222,7 +222,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => { narrow_banner.show_empty_narrow_message(); assert.equal( $(".empty_feed_notice_main").html(), - empty_narrow_html("translated: This stream does not exist or is private."), + empty_narrow_html("translated: This channel does not exist or is private."), ); // for non-subbed public stream @@ -232,8 +232,8 @@ run_test("show_empty_narrow_message", ({mock_template}) => { assert.equal( $(".empty_feed_notice_main").html(), empty_narrow_html( - "translated: You aren't subscribed to this stream and nobody has talked about that yet!", - 'translated HTML: ', + "translated: There are no messages here.", + 'translated HTML: Why not start the conversation?', ), ); @@ -524,7 +524,7 @@ run_test("show_empty_narrow_message", ({mock_template}) => { narrow_banner.show_empty_narrow_message(); assert.equal( $(".empty_feed_notice_main").html(), - empty_narrow_html("translated: This stream does not exist or is private."), + empty_narrow_html("translated: This channel does not exist or is private."), ); }); @@ -626,7 +626,7 @@ run_test("show_invalid_narrow_message", ({mock_template}) => { $(".empty_feed_notice_main").html(), empty_narrow_html( "translated: No search results.", - "translated HTML:

You are searching for messages that belong to more than one stream, which is not possible.

", + "translated HTML:

You are searching for messages that belong to more than one channel, which is not possible.

", ), );