exceptions: Update translated errors for stream to channel rename.

In zerver/lib/exceptions.py, updates translated error strings
to use channel instead of stream.

Note that the STREAM_WILDCARD_MENTION_NOT_ALLOWED and the
STREAM_DOES_NOT_EXIST error codes, and any additional fields
included with those errors, are not changed in these updates.

Part of stream to channel rename project.
This commit is contained in:
Lauryn Menard
2024-04-16 21:27:36 +02:00
committed by Tim Abbott
parent 51b3ef8ee3
commit 0b5f325e48
4 changed files with 13 additions and 13 deletions

View File

@@ -174,7 +174,7 @@ class StreamDoesNotExistError(JsonableError):
@staticmethod
@override
def msg_format() -> str:
return _("Stream '{stream}' does not exist")
return _("Channel '{stream}' does not exist")
class StreamWithIDDoesNotExistError(JsonableError):
@@ -187,7 +187,7 @@ class StreamWithIDDoesNotExistError(JsonableError):
@staticmethod
@override
def msg_format() -> str:
return _("Stream with ID '{stream_id}' does not exist")
return _("Channel with ID '{stream_id}' does not exist")
class CannotDeactivateLastUserError(JsonableError):
@@ -631,7 +631,7 @@ class StreamWildcardMentionNotAllowedError(JsonableError):
@staticmethod
@override
def msg_format() -> str:
return _("You do not have permission to use stream wildcard mentions in this stream.")
return _("You do not have permission to use channel wildcard mentions in this channel.")
class TopicWildcardMentionNotAllowedError(JsonableError):