From b66deb3278485b798f7911afd95618869220f39d Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Sat, 20 May 2023 23:55:34 +0300 Subject: [PATCH] [feat]: Music localization --- cogs/economic.py | 2 +- translations.json | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/cogs/economic.py b/cogs/economic.py index a9c40d3..853c52d 100644 --- a/cogs/economic.py +++ b/cogs/economic.py @@ -256,7 +256,7 @@ class Economic(commands.Cog, name="Экономика"): user_data = await db.members.find_one({"id": user.id}) if user_data is None or str(inter.guild.id) not in user_data['guild_stat'].keys(): - await inter.response.send_message("Об этом пользователе информации пока нет") + await inter.response.send_message(await get_text(inter, "no_user_info", 'rank')) return if str(user.id) in self.bot.voice_counter.keys(): diff --git a/translations.json b/translations.json index 06e9ab0..4b7ccfc 100644 --- a/translations.json +++ b/translations.json @@ -87,7 +87,38 @@ "Per hour": "За час", "Per day": "За день", "per the past hour": "за прошедший час", - "per the past day": "за прошедший день" + "per the past day": "за прошедший день", + "no_user_info": "Об этом пользователе еще нет информации" + }, + "music": { + "to_queue": "Добавлена новая композиция в очередь", + "end_of_queue": "В очереди больше не осталось песен", + "stop_res": "Остановлено", + "pause_res": "Поставлено на паузу", + "resume_res": "Снято с паузы", + "disconnect_res": "Отключено", + "next_res": "Включена следующая композиция", + "not_in_vc": "Требуется нахождение в голосовом канале", + "occupied": "Занято каналом {}" + } + } + }, + + "en-US": { + "7": { + "music": { + "to_queue": "Added to queue", + "end_of_queue": "End of queue", + "stop_res": "Stoped", + "pause_res": "Paused", + "resume_res": "Resumed", + "disconnect_res": "Disconnected", + "next_res": "Switched to next track", + "not_in_vc": "You should be in voice channel", + "occupied": "Occupied by {}" + }, + "rank": { + "no_user_info": "No data about this user yet" } } },