mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-08 12:18:54 -05:00
Add i18n deco to Dev and Mutes cog (#4815)
* Add i18n deco to Dev cog * Add i18n deco to Mutes cog
This commit is contained in:
parent
3122eb0447
commit
6cfaffb8a8
@ -63,6 +63,7 @@ class CompositeMetaClass(type(commands.Cog), type(ABC)):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@i18n.cog_i18n(_)
|
||||||
class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
||||||
"""
|
"""
|
||||||
Mute users temporarily or indefinitely.
|
Mute users temporarily or indefinitely.
|
||||||
|
|||||||
@ -14,7 +14,7 @@ import discord
|
|||||||
|
|
||||||
from . import checks, commands
|
from . import checks, commands
|
||||||
from .commands import NoParseOptional as Optional
|
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.chat_formatting import box, pagify
|
||||||
from .utils.predicates import MessagePredicate
|
from .utils.predicates import MessagePredicate
|
||||||
|
|
||||||
@ -31,6 +31,7 @@ _ = Translator("Dev", __file__)
|
|||||||
START_CODE_BLOCK_RE = re.compile(r"^((```py)(?=\s)|(```))")
|
START_CODE_BLOCK_RE = re.compile(r"^((```py)(?=\s)|(```))")
|
||||||
|
|
||||||
|
|
||||||
|
@cog_i18n(_)
|
||||||
class Dev(commands.Cog):
|
class Dev(commands.Cog):
|
||||||
"""Various development focused utilities."""
|
"""Various development focused utilities."""
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user