Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

web-filter: Update translated strings for stream rename channel.

Lauryn Menardc874183ea8a2
diff --git a/web/src/filter.ts b/web/src/filter.ts
index 617c3dfd60e..17c647616c9 100644
--- a/web/src/filter.ts
+++ b/web/src/filter.ts
@@ -975,7 +975,7 @@ export class Filter {
) {
if (!this._sub) {
const search_text = this.operands("channel")[0];
- return $t({defaultMessage: "Unknown stream #{search_text}"}, {search_text});
+ return $t({defaultMessage: "Unknown channel #{search_text}"}, {search_text});
}
return this._sub.name;
}
@@ -1025,9 +1025,9 @@ export class Filter {
case "in-home":
return $t({defaultMessage: "Combined feed"});
case "in-all":
- return $t({defaultMessage: "All messages including muted streams"});
+ return $t({defaultMessage: "All messages including muted channels"});
case "channels-public":
- return $t({defaultMessage: "Messages in all public streams"});
+ return $t({defaultMessage: "Messages in all public channels"});
case "is-starred":
return $t({defaultMessage: "Starred messages"});
case "is-mentioned":
diff --git a/web/tests/filter.test.js b/web/tests/filter.test.js
index 48cb6f5e250..a18f9ec1e2c 100644
--- a/web/tests/filter.test.js
+++ b/web/tests/filter.test.js
@@ -1689,7 +1689,7 @@ test("navbar_helpers", () => {
terms: in_all,
is_common_narrow: true,
icon: "home",
- title: "translated: All messages including muted streams",
+ title: "translated: All messages including muted channels",
redirect_url_with_search: "#",
},
{
@@ -1724,7 +1724,7 @@ test("navbar_helpers", () => {
terms: streams_public,
is_common_narrow: true,
icon: undefined,
- title: "translated: Messages in all public streams",
+ title: "translated: Messages in all public channels",
redirect_url_with_search: "/#narrow/streams/public",
},
{
@@ -1738,14 +1738,14 @@ test("navbar_helpers", () => {
terms: non_existent_stream,
is_common_narrow: true,
icon: "question-circle-o",
- title: "translated: Unknown stream #Elephant",
+ title: "translated: Unknown channel #Elephant",
redirect_url_with_search: "#",
},
{
terms: non_existent_stream_topic,
is_common_narrow: true,
icon: "question-circle-o",
- title: "translated: Unknown stream #Elephant",
+ title: "translated: Unknown channel #Elephant",
redirect_url_with_search: "#",
},
{
diff --git a/web/tests/narrow.test.js b/web/tests/narrow.test.js
index 02cf10f7c2e..49ead0af22b 100644
--- a/web/tests/narrow.test.js
+++ b/web/tests/narrow.test.js
@@ -815,7 +815,10 @@ run_test("narrow_compute_title", () => {
assert.equal(narrow_title.compute_narrow_title(filter), "#Foo");
filter = new Filter([{operator: "stream", operand: "Elephant"}]);
- assert.equal(narrow_title.compute_narrow_title(filter), "translated: Unknown stream #Elephant");
+ assert.equal(
+ narrow_title.compute_narrow_title(filter),
+ "translated: Unknown channel #Elephant",
+ );
// Direct messages with narrows
const joe = {