From bb90a50ae483f42c2d50d108b02d09dd4c762ab7 Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Mon, 17 Feb 2020 18:11:42 +0100 Subject: [PATCH] i18n fixes for #3562 (#3565) --- redbot/core/core_commands.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index 918af1235..aa0ef316e 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -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."))