Skip to content

Commit

Permalink
Merge pull request #706 from WolverStones/patch-2
Browse files Browse the repository at this point in the history
Add Czech language translation for existing bot commands
  • Loading branch information
LucasB25 authored Aug 30, 2024
2 parents 117ea4c + 9c32f9b commit fac3cb5
Show file tree
Hide file tree
Showing 21 changed files with 415 additions and 378 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ BOT_ACTIVITY_TYPE= 0 # Activity type is a number from 0 to 5. See more here: htt
BOT_ACTIVITY=" Lavamusic" # Your bot activity.
DATABASE_URL= "" # Your database url (If you want to use sqlite, then you can leave it blank.).
AUTO_NODE=" false" # true for auto node. It is given from lavainfo-api (https://lavainfo-api.deno.dev).
SEARCH_ENGINE= "YouTubeMusic" # Search engine to be used when playing the song. You can use: YouTube, YouTubeMusic, SoundCloud, Spotify, Apple, Deezer, Yandex and (JioSaavn
SEARCH_ENGINE= "YouTubeMusic" # Search engine to be used when playing the song. You can use: YouTube, YouTubeMusic, SoundCloud, Spotify, Apple, Deezer, Yandex and JioSaavn
MAX_PLAYLIST_SIZE= "100" # Max playlist size.
MAX_QUEUE_SIZE= "100" # Max queue size.

Expand Down
4 changes: 3 additions & 1 deletion locales/Bulgarian.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 3 additions & 1 deletion locales/Croatian.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
715 changes: 358 additions & 357 deletions locales/Czech.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion locales/Danish.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 3 additions & 1 deletion locales/Dutch.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 3 additions & 1 deletion locales/EnglishGB.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 3 additions & 1 deletion locales/EnglishUS.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 3 additions & 1 deletion locales/Finnish.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 3 additions & 1 deletion locales/Greek.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 3 additions & 1 deletion locales/Hungarian.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 3 additions & 1 deletion locales/Italian.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 3 additions & 1 deletion locales/Korean.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "오류: `{error}`",
"no_voice_channel_queue": "대기열에 노래를 추가하려면 음성 채널에 접속해주세요.",
"no_permission_connect_speak": "<#{channel}>에서 연결/말하기 권한이 없어요.",
"different_voice_channel_queue": "노래를 대기열에 추가하려면 <#{channel}> 채널에 접속해주세요."
"different_voice_channel_queue": "노래를 대기열에 추가하려면 <#{channel}> 채널에 있어야 해요.",
"vote_button": "투표하기",
"vote_message": "잠깐! 이 명령어를 사용하려면 top.gg에서 투표해야 해요."
},
"setupButton": {
"no_voice_channel_button": "이 버튼을 사용하려면 음성 채널에 접속해주세요.",
Expand Down
4 changes: 3 additions & 1 deletion locales/Lithuanian.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 3 additions & 1 deletion locales/PortugueseBR.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 3 additions & 1 deletion locales/Romanian.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 3 additions & 1 deletion locales/Swedish.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 3 additions & 1 deletion locales/Thai.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 3 additions & 1 deletion locales/Turkish.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 3 additions & 1 deletion locales/Ukrainian.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@
"error": "An error occurred: `{error}`",
"no_voice_channel_queue": "You are not connected to a voice channel to queue songs.",
"no_permission_connect_speak": "I don't have enough permission to connect/speak in <#{channel}>.",
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs."
"different_voice_channel_queue": "You are not connected to <#{channel}> to queue songs.",
"vote_button": "Vote for me!",
"vote_message": "Wait! You need to vote on top.gg to use this command. Thanks."
},
"setupButton": {
"no_voice_channel_button": "You are not connected to a voice channel to use this button.",
Expand Down
4 changes: 2 additions & 2 deletions src/events/client/MessageCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ export default class MessageCreate extends Event {
if (!voted) {
const voteBtn = new ActionRowBuilder<ButtonBuilder>().addComponents(
new ButtonBuilder()
.setLabel("Vote for Me!")
.setLabel(T(locale, "event.message.vote_button"))
.setURL(`https://top.gg/bot/${this.client.config.clientId}/vote`)
.setStyle(ButtonStyle.Link),
);

return await message.reply({
content: "Wait! Before using this command, you must vote on top.gg. Thank you.",
content: T(locale, "event.message.vote_message"),
components: [voteBtn],
});
}
Expand Down

0 comments on commit fac3cb5

Please sign in to comment.