i18n: logger messages shouldn't be translatable.

Co-authored-by: Jim Chen <jimchen5209@gmail.com>
This commit is contained in:
pan93412 2019-08-28 15:44:06 +08:00 committed by GitHub
parent e283d7af10
commit 1936d00f2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@ def do_skip(bot, player, job_queue=None):
.format(time=n, .format(time=n,
name=display_name(next_player.user)) 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))) .format(player=display_name(player.user)))
game.turn() game.turn()
if job_queue: if job_queue:
@ -66,7 +66,7 @@ def do_skip(bot, player, job_queue=None):
"Next player: {name2}", multi=game.translate) "Next player: {name2}", multi=game.translate)
.format(name1=display_name(skipped_player.user), .format(name1=display_name(skipped_player.user),
name2=display_name(next_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))) .format(player=display_name(player.user)))
if job_queue: if job_queue:
start_player_countdown(bot, game, job_queue) start_player_countdown(bot, game, job_queue)
@ -210,4 +210,4 @@ def skip_job(bot, job):
game = player.game game = player.game
if game_is_running(game): if game_is_running(game):
job_queue = job.context.job_queue job_queue = job.context.job_queue
do_skip(bot, player, job_queue) do_skip(bot, player, job_queue)