From 701fa21c6442096354b82af875e2bdcff20146e3 Mon Sep 17 00:00:00 2001 From: Nick Jungmann Date: Sun, 11 Dec 2022 14:25:47 +0100 Subject: [PATCH] Added translation for user remove command --- kdb-bot/src/bot/translation/de.json | 4 ++++ kdb-bot/src/modules/base/command/user_group.py | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/kdb-bot/src/bot/translation/de.json b/kdb-bot/src/bot/translation/de.json index 018090966a..e623d41fdf 100644 --- a/kdb-bot/src/bot/translation/de.json +++ b/kdb-bot/src/bot/translation/de.json @@ -183,6 +183,10 @@ "set": { "xp": "{} hat nun {} xp" }, + "remove": { + "xp": "Die {} von {} wurden entfernt", + "ontime": "Die {} von {} wurden entfernt" + }, "error": { "atr_not_found": "Das Attribut {} konnte nicht gefunden werden :(", "value_type": "Der angegebende Wert konnte nicht für das Attribut interpretiert werden :(" diff --git a/kdb-bot/src/modules/base/command/user_group.py b/kdb-bot/src/modules/base/command/user_group.py index 8223f4264d..27b9b7acf7 100644 --- a/kdb-bot/src/modules/base/command/user_group.py +++ b/kdb-bot/src/modules/base/command/user_group.py @@ -221,14 +221,12 @@ class UserGroup(DiscordCommandABC): return case other: - # ToDo: Move atr_not_found await self._message_service.send_interaction_msg(ctx.interaction, self._t.transform('modules.base.user.error.atr_not_found').format(atr)) return - # ToDo: Add text for it await self._message_service.send_interaction_msg( ctx.interaction, - self._t.transform(f'modules.base.user.remove.{atr}').format(member.mention, value) + self._t.transform(f'modules.base.user.remove.{atr}').format(value, member.mention) ) @remove.autocomplete('atr')