i18n fixes for #3562 (#3565)

This commit is contained in:
jack1142 2020-02-17 18:11:42 +01:00 committed by GitHub
parent 6c62817de5
commit bb90a50ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1089,7 +1089,7 @@ class Core(commands.Cog, CoreLogic):
)
await ctx.bot.change_presence(status=status, activity=game)
if game:
await ctx.send(_(f"Status set to ``Playing {game.name}``."))
await ctx.send(_("Status set to ``Playing {game.name}``.").format(game=game))
else:
await ctx.send(_("Game cleared."))
@ -1106,7 +1106,9 @@ class Core(commands.Cog, CoreLogic):
activity = None
await ctx.bot.change_presence(status=status, activity=activity)
if activity:
await ctx.send(_(f"Status set to ``Listening to {listening}``."))
await ctx.send(
_("Status set to ``Listening to {listening}``.").format(listening=listening)
)
else:
await ctx.send(_("Listening cleared."))
@ -1123,7 +1125,7 @@ class Core(commands.Cog, CoreLogic):
activity = None
await ctx.bot.change_presence(status=status, activity=activity)
if activity:
await ctx.send(_(f"Status set to ``Watching {watching}``."))
await ctx.send(_("Status set to ``Watching {watching}``.").format(watching=watching))
else:
await ctx.send(_("Watching cleared."))