From 7db2ba556d0f828c2c5987ad9cf4ff6b26e717f4 Mon Sep 17 00:00:00 2001 From: Stonedestroyer <1307729+Stonedestroyer@users.noreply.github.com> Date: Wed, 28 Oct 2020 11:56:27 +0100 Subject: [PATCH] Fixes concurrency spelling with time(s) (#4450) * Change spelling * Change for translation --- redbot/core/events.py | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/redbot/core/events.py b/redbot/core/events.py index fda0309e0..6002de140 100644 --- a/redbot/core/events.py +++ b/redbot/core/events.py @@ -303,15 +303,27 @@ def init_events(bot, cli_flags): await ctx.send(msg, delete_after=error.retry_after) elif isinstance(error, commands.MaxConcurrencyReached): if error.per is commands.BucketType.default: - msg = _( - "Too many people using this command." - " It can only be used {number} time(s) concurrently." - ).format(number=error.number) + if error.per > 1: + msg = _( + "Too many people using this command." + " It can only be used {number} times concurrently." + ).format(number=error.number) + else: + msg = _( + "Too many people using this command." + " It can only be used {number} time concurrently." + ).format(number=error.number) else: - msg = _( - "Too many people using this command." - " It can only be used {number} time(s) per {type} concurrently." - ).format(number=error.number, type=error.per.name) + if error.per > 1: + msg = _( + "Too many people using this command." + " It can only be used {number} times per {type} concurrently." + ).format(number=error.number, type=error.per.name) + else: + msg = _( + "Too many people using this command." + " It can only be used {number} time per {type} concurrently." + ).format(number=error.number, type=error.per.name) await ctx.send(msg) else: log.exception(type(error).__name__, exc_info=error)