mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
[i18n] Fix some missing i18n strings in the whole bot (#2633)
This commit is contained in:
@@ -66,7 +66,7 @@ class ModLog(commands.Cog):
|
||||
await ctx.send_help()
|
||||
lines = []
|
||||
for ct in casetypes:
|
||||
enabled = "enabled" if await ct.is_enabled() else "disabled"
|
||||
enabled = _("enabled") if await ct.is_enabled() else _("disabled")
|
||||
lines.append(f"{ct.name} : {enabled}")
|
||||
|
||||
await ctx.send(_("Current settings:\n") + box("\n".join(lines)))
|
||||
@@ -80,7 +80,7 @@ class ModLog(commands.Cog):
|
||||
await casetype.set_enabled(not enabled)
|
||||
await ctx.send(
|
||||
_("Case creation for {action_name} actions is now {enabled}.").format(
|
||||
action_name=action, enabled="enabled" if not enabled else "disabled"
|
||||
action_name=action, enabled=_("enabled") if not enabled else _("disabled")
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user