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-i18n-test: Update translation data for stream rename channel.

Lauryn Menard8bc183e16ec6
diff --git a/web/tests/i18n.test.js b/web/tests/i18n.test.js
index 2b07e2643cb..8dccef372fe 100644
--- a/web/tests/i18n.test.js
+++ b/web/tests/i18n.test.js
@@ -15,9 +15,9 @@ page_params.request_language = "en";
page_params.translation_data = {
"Quote and reply": "Citer et répondre",
"Notification triggers": "Déclencheurs de notification",
- "You subscribed to stream {stream}": "Vous n'êtes pas abonnés au canal {stream}",
- "<p>The stream <b>{stream_name}</b> does not exist.</p><p>Manage your subscriptions <z-link>on your Streams page</z-link>.</p>":
- "<p>Le canal <b>{stream_name}</b> n'existe pas.</p><p>Gérez vos abonnements <z-link>sur votre page canaux</z-link>.</p>",
+ "You subscribed to channel {name}": "Vous n'êtes pas abonnés au canal {name}",
+ "<p>The channel <b>{name}</b> does not exist.</p><p>Manage your subscriptions <z-link>on your Channels page</z-link>.</p>":
+ "<p>Le canal <b>{name}</b> n'existe pas.</p><p>Gérez vos abonnements <z-link>sur votre page canaux</z-link>.</p>",
};
// Re-register Zulip extensions so extensions registered previously with
@@ -41,10 +41,10 @@ run_test("$t", () => {
assert.equal(
$t(
{
- id: "You subscribed to stream {stream}",
- defaultMessage: "You subscribed to stream {stream}",
+ id: "You subscribed to channel {name}",
+ defaultMessage: "You subscribed to channel {name}",
},
- {stream: "l'abonnement"},
+ {name: "l'abonnement"},
),
"Vous n'êtes pas abonnés au canal l'abonnement",
);
@@ -54,16 +54,16 @@ run_test("$tr", () => {
assert.equal(
$t_html(
{
- id: "<p>The stream <b>{stream_name}</b> does not exist.</p><p>Manage your subscriptions <z-link>on your Streams page</z-link>.</p>",
+ id: "<p>The channel <b>{name}</b> does not exist.</p><p>Manage your subscriptions <z-link>on your Channels page</z-link>.</p>",
defaultMessage:
- "<p>The stream <b>{stream_name}</b> does not exist.</p><p>Manage your subscriptions <z-link>on your Streams page</z-link>.</p>",
+ "<p>The channel <b>{name}</b> does not exist.</p><p>Manage your subscriptions <z-link>on your Channels page</z-link>.</p>",
},
{
- stream_name: "l'abonnement",
- "z-link": (content_html) => `<a href='#streams/all'>${content_html.join("")}</a>`,
+ name: "l'abonnement",
+ "z-link": (content_html) => `<a href='#channels/all'>${content_html.join("")}</a>`,
},
),
- "<p>Le canal <b>l&#39;abonnement</b> n'existe pas.</p><p>Gérez vos abonnements <a href='#streams/all'>sur votre page canaux</a>.</p>",
+ "<p>Le canal <b>l&#39;abonnement</b> n'existe pas.</p><p>Gérez vos abonnements <a href='#channels/all'>sur votre page canaux</a>.</p>",
);
});