Update Translations (#2486)

Also included a Makefile recipe which makes use of the Crowdin CLI's `crowdin download` command. This requires whoever is using it to provide the project's API key in an environment variable, but we may automate this at some point.

Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
This commit is contained in:
Toby Harradine
2019-03-04 08:55:01 +11:00
committed by GitHub
parent 2755592175
commit 628073cbe1
556 changed files with 130783 additions and 16873 deletions

View File

@@ -411,10 +411,12 @@ class CustomCommands(commands.Cog):
_type = _("Random") if len(responses) > 1 else _("Normal")
text = _(
"Command: {}\n"
"Author: {}\n"
"Created: {}\n"
"Type: {}\n".format(command_name, author, cmd["created_at"], _type)
"Command: {command_name}\n"
"Author: {author}\n"
"Created: {created_at}\n"
"Type: {type}\n"
).format(
command_name=command_name, author=author, created_at=cmd["created_at"], type=_type
)
cooldowns = cmd["cooldowns"]
@@ -422,7 +424,7 @@ class CustomCommands(commands.Cog):
if cooldowns:
cooldown_text = _("Cooldowns:\n")
for rate, per in cooldowns.items():
cooldown_text += _("{} seconds per {}\n".format(per, rate))
cooldown_text += _("{num} seconds per {period}\n").format(num=per, period=rate)
text += cooldown_text
text += _("Responses:\n")