[i18n] Fix some missing i18n strings in the whole bot (#2633)

This commit is contained in:
PredaaA
2019-06-29 17:13:53 +02:00
committed by Toby Harradine
parent 8a72840de0
commit 03fe3ee720
8 changed files with 56 additions and 39 deletions

View File

@@ -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")
)
)