From 6cfaffb8a87ca2d2786ef6403e995939139f45ff Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Mon, 15 Feb 2021 00:19:34 +0100 Subject: [PATCH] Add i18n deco to Dev and Mutes cog (#4815) * Add i18n deco to Dev cog * Add i18n deco to Mutes cog --- redbot/cogs/mutes/mutes.py | 1 + redbot/core/dev_commands.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/redbot/cogs/mutes/mutes.py b/redbot/cogs/mutes/mutes.py index 4bc7cedfd..1c366fd8c 100644 --- a/redbot/cogs/mutes/mutes.py +++ b/redbot/cogs/mutes/mutes.py @@ -63,6 +63,7 @@ class CompositeMetaClass(type(commands.Cog), type(ABC)): pass +@i18n.cog_i18n(_) class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass): """ Mute users temporarily or indefinitely. diff --git a/redbot/core/dev_commands.py b/redbot/core/dev_commands.py index 2ec5d0b50..8c9931d86 100644 --- a/redbot/core/dev_commands.py +++ b/redbot/core/dev_commands.py @@ -14,7 +14,7 @@ import discord from . import checks, commands from .commands import NoParseOptional as Optional -from .i18n import Translator +from .i18n import Translator, cog_i18n from .utils.chat_formatting import box, pagify from .utils.predicates import MessagePredicate @@ -31,6 +31,7 @@ _ = Translator("Dev", __file__) START_CODE_BLOCK_RE = re.compile(r"^((```py)(?=\s)|(```))") +@cog_i18n(_) class Dev(commands.Cog): """Various development focused utilities."""