i18n: Update translated errors for stream to channel rename.

Updates various areas of the backend code that generate
JsonableErrors with translated strings to use channel
instead of stream.

Part of stream to channel rename project.
This commit is contained in:
Lauryn Menard
2024-04-16 15:52:21 +02:00
committed by Tim Abbott
parent df3ab8deea
commit 9be4d07442
16 changed files with 63 additions and 61 deletions

View File

@@ -60,7 +60,7 @@ def further_validated_draft_dict(
if "\0" in topic_name:
raise JsonableError(_("Topic must not contain null bytes"))
if len(to) != 1:
raise JsonableError(_("Must specify exactly 1 stream ID for stream messages"))
raise JsonableError(_("Must specify exactly 1 channel ID for channel messages"))
stream, sub = access_stream_by_id(user_profile, to[0])
recipient_id = stream.recipient_id
elif draft_dict.type == "private" and len(to) != 0: