From 9aaddc6231a89ff2b6897f62239779d1220a4cae Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Wed, 17 Apr 2024 18:08:31 +0200 Subject: [PATCH] stream-policy: Update everyone policy for stream to channel rename. In zerver/models/streams.py, updates translated string for when everyone can post to a stream/channel to use channel instead of stream. Part of stream to channel rename project. --- zerver/models/streams.py | 2 +- zerver/tests/test_subs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/models/streams.py b/zerver/models/streams.py index c782190213..34b4f067ff 100644 --- a/zerver/models/streams.py +++ b/zerver/models/streams.py @@ -90,7 +90,7 @@ class Stream(models.Model): POST_POLICIES: Dict[int, StrPromise] = { # These strings should match the strings in the # stream_post_policy_values object in stream_data.js. - STREAM_POST_POLICY_EVERYONE: gettext_lazy("All stream members can post"), + STREAM_POST_POLICY_EVERYONE: gettext_lazy("All channel members can post"), STREAM_POST_POLICY_ADMINS: gettext_lazy("Only organization administrators can post"), STREAM_POST_POLICY_MODERATORS: gettext_lazy( "Only organization administrators and moderators can post" diff --git a/zerver/tests/test_subs.py b/zerver/tests/test_subs.py index ed169e4893..37a306a042 100644 --- a/zerver/tests/test_subs.py +++ b/zerver/tests/test_subs.py @@ -1986,7 +1986,7 @@ class StreamAdminTest(ZulipTestCase): expected_notification = ( f"@_**{user_profile.full_name}|{user_profile.id}** changed the " "[posting permissions](/help/stream-sending-policy) for this channel:\n\n" - "* **Old permissions**: All stream members can post.\n" + "* **Old permissions**: All channel members can post.\n" "* **New permissions**: Only organization administrators can post." ) self.assertEqual(messages[-1].content, expected_notification)