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.
This commit is contained in:
Lauryn Menard 2024-04-17 18:08:31 +02:00 committed by Tim Abbott
parent eb9a142a9e
commit 9aaddc6231
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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)