From 9da083ad0d0307d1b4e8d4e27797fa92d1f9c8d4 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Tue, 11 Jan 2022 16:57:09 +0500 Subject: [PATCH] =?UTF-8?q?=D0=95=D1=89=D1=91=20=D0=B8=D0=B7=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- events/guildMemberAdd.js | 4 +--- events/guildMemberRemove.js | 4 +--- languages/ru-RU/administration/goodbye.json | 1 - languages/ru-RU/administration/welcome.json | 1 - 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/events/guildMemberAdd.js b/events/guildMemberAdd.js index e3557e1f..258cb765 100644 --- a/events/guildMemberAdd.js +++ b/events/guildMemberAdd.js @@ -100,9 +100,7 @@ module.exports = class { // Draw membercount ctx.font = "22px RubikMonoOne"; - ctx.fillText(member.guild.translate("administration/welcome:IMG_NB", { - memberCount: member.guild.memberCount - }), 40, canvas.height - 35); + ctx.fillText(`${member.guild.memberCount}й ${member.guild.translate("misc:NOUNS:MEMBERS:1")}`, 40, canvas.height - 35); // Draw # for discriminator ctx.fillStyle = "#FFFFFF"; diff --git a/events/guildMemberRemove.js b/events/guildMemberRemove.js index ec5726ff..f1d91b86 100644 --- a/events/guildMemberRemove.js +++ b/events/guildMemberRemove.js @@ -83,9 +83,7 @@ module.exports = class { // Draw membercount ctx.font = "22px RubikMonoOne"; - ctx.fillText(member.guild.translate("administration/goodbye:IMG_NB", { - memberCount: member.guild.memberCount - }), 40, canvas.height - 35); + ctx.fillText(`${member.guild.memberCount} ${this.client.getNoun(member.guild.memberCount, member.guild.translate("misc:NOUNS:MEMBERS:1"), member.guild.translate("misc:NOUNS:MEMBERS:2"), member.guild.translate("misc:NOUNS:MEMBERS:5"))}`, 40, canvas.height - 35); // Draw # for discriminator ctx.fillStyle = "#FFFFFF"; diff --git a/languages/ru-RU/administration/goodbye.json b/languages/ru-RU/administration/goodbye.json index 15d1574e..08806e16 100644 --- a/languages/ru-RU/administration/goodbye.json +++ b/languages/ru-RU/administration/goodbye.json @@ -12,6 +12,5 @@ "MAX_CHARACT": "Ваше сообщение не должно быть больше 1800 символов!", "DISABLED": "**Сообщения отключены!**\n\n:arrow_right_hook: *Используйте `{{prefix}}configuration`, чтобы увидеть обновлённые настройки!*", "IMG_GOODBYE": "Вышел с {{server}}!", - "IMG_NB": "{{memberCount}} участников!", "TITLE": "До встречи!" } \ No newline at end of file diff --git a/languages/ru-RU/administration/welcome.json b/languages/ru-RU/administration/welcome.json index 9078b8cb..5790075c 100644 --- a/languages/ru-RU/administration/welcome.json +++ b/languages/ru-RU/administration/welcome.json @@ -12,6 +12,5 @@ "MAX_CHARACT": "Ваше сообщение не должно быть больше 1800 символов!", "DISABLED": "**Сообщения отключены!**\n\n:arrow_right_hook: *Используйте `{{prefix}}configuration`, чтобы увидеть обновлённые настройки!*", "IMG_WELCOME": "Добро пожаловать на {{server}}!", - "IMG_NB": "{{memberCount}}й участник!", "TITLE": "Добро пожаловать!" } \ No newline at end of file