From 1936d00f2adc73a6f7789e01acc52d1d96a21b9b Mon Sep 17 00:00:00 2001 From: pan93412 <28441561+pan93412@users.noreply.github.com> Date: Wed, 28 Aug 2019 15:44:06 +0800 Subject: [PATCH] i18n: logger messages shouldn't be translatable. Co-authored-by: Jim Chen --- actions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actions.py b/actions.py index 04bee40..deefea6 100644 --- a/actions.py +++ b/actions.py @@ -51,7 +51,7 @@ def do_skip(bot, player, job_queue=None): .format(time=n, name=display_name(next_player.user)) ) - logger.info(__("{player} was skipped! ", multi=game.translate) + logger.info("{player} was skipped! " .format(player=display_name(player.user))) game.turn() if job_queue: @@ -66,7 +66,7 @@ def do_skip(bot, player, job_queue=None): "Next player: {name2}", multi=game.translate) .format(name1=display_name(skipped_player.user), name2=display_name(next_player.user))) - logger.info(__("{player} was skipped! ", multi=game.translate) + logger.info("{player} was skipped! " .format(player=display_name(player.user))) if job_queue: start_player_countdown(bot, game, job_queue) @@ -210,4 +210,4 @@ def skip_job(bot, job): game = player.game if game_is_running(game): job_queue = job.context.job_queue - do_skip(bot, player, job_queue) \ No newline at end of file + do_skip(bot, player, job_queue)