mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 15:09:34 +00:00
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:
committed by
Tim Abbott
parent
51b3ef8ee3
commit
0b5f325e48
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user