mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
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:
committed by
Tim Abbott
parent
df3ab8deea
commit
9be4d07442
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user