[feat]: Music localization

This commit is contained in:
Sweetbread 2023-05-20 23:55:34 +03:00
parent 6a99350ac5
commit b66deb3278
2 changed files with 33 additions and 2 deletions

View File

@ -256,7 +256,7 @@ class Economic(commands.Cog, name="Экономика"):
user_data = await db.members.find_one({"id": user.id}) 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(): 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 return
if str(user.id) in self.bot.voice_counter.keys(): if str(user.id) in self.bot.voice_counter.keys():

View File

@ -87,7 +87,38 @@
"Per hour": "За час", "Per hour": "За час",
"Per day": "За день", "Per day": "За день",
"per the past hour": "за прошедший час", "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"
} }
} }
}, },