Update command docstrings and localization keys
Improved docstrings for 'play' and 'search' commands in basic.py for clarity. Updated localization keys and translations in es-419.json, es-ES.json, and zh-CN.json to fix punctuation, naming consistency, and minor translation errors.
This commit is contained in:
@@ -127,7 +127,7 @@ class Basic(commands.Cog):
|
||||
@app_commands.autocomplete(query=play_autocomplete)
|
||||
@commands.dynamic_cooldown(cooldown_check, commands.BucketType.guild)
|
||||
async def play(self, ctx: commands.Context, *, query: str, start: str = "0", end: str = "0") -> None:
|
||||
"Loads your input into the queue"
|
||||
"Loads your input into the queue."
|
||||
player: voicelink.Player = ctx.guild.voice_client
|
||||
if not player:
|
||||
player = await voicelink.connect_channel(ctx)
|
||||
@@ -222,7 +222,7 @@ class Basic(commands.Cog):
|
||||
])
|
||||
@commands.dynamic_cooldown(cooldown_check, commands.BucketType.guild)
|
||||
async def search(self, ctx: commands.Context, *, query: str, platform: str = SearchType.YOUTUBE.name):
|
||||
"Loads your search query and shows the results."
|
||||
"Searches your query and displays the results."
|
||||
player: voicelink.Player = ctx.guild.voice_client
|
||||
if not player:
|
||||
player = await voicelink.connect_channel(ctx)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"channel": "canal",
|
||||
"Provide a channel to connect.": "Proporciona un canal para conectar.",
|
||||
"play": "reproducir",
|
||||
"Loads your input into the queue": "Carga tu entrada en la cola.",
|
||||
"Loads your input into the queue.": "Carga tu entrada en la cola.",
|
||||
"Searches your query and displays the results.": "Busca tu consulta y muestra los resultados.",
|
||||
"query": "consulta",
|
||||
"Input a query or a searchable link.": "Ingresa una consulta o un enlace de búsqueda.",
|
||||
@@ -93,7 +93,7 @@
|
||||
"title": "titulo",
|
||||
"Searches for your query and displays the reutned lyrics.": "Busca tu consulta y muestra la letra encontrada.",
|
||||
"artist": "artista",
|
||||
"swapdj": "cambiar_dj",
|
||||
"swapdj": "cambiardj",
|
||||
"Transfer dj to another.": "Transfiere el DJ a otro.",
|
||||
"Choose a member to transfer the dj role.": "Elige un miembro para transferir el rol de DJ.",
|
||||
"autoplay": "reproduccion_auto",
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
"title": "titulo",
|
||||
"Searches for your query and displays the reutned lyrics.": "Busca tu consulta y muestra la letra encontrada.",
|
||||
"artist": "artista",
|
||||
"swapdj": "cambiar_dj",
|
||||
"swapdj": "cambiardj",
|
||||
"Transfer dj to another.": "Transfiere el DJ a otro.",
|
||||
"Choose a member to transfer the dj role.": "Elige un miembro para transferir el rol de DJ.",
|
||||
"autoplay": "reproduccion_auto",
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
"title": "标题",
|
||||
"Searches for your query and displays the reutned lyrics.": "搜索您的查询并显示返回的歌词。",
|
||||
"artist": "歌手",
|
||||
"swapdj": "转移DJ",
|
||||
"swapdj": "转移dj",
|
||||
"Transfer dj to another.": "将 DJ 转移给其他人。",
|
||||
"Choose a member to transfer the dj role.": "选择要转移 DJ 身份的成员。",
|
||||
"autoplay": "自动播放",
|
||||
@@ -165,7 +165,7 @@
|
||||
"speed": "速度",
|
||||
"Sets the player's playback speed": "设置播放器播放速度。",
|
||||
"The value to set the speed to. Default is `1.0`": "设置速度值,默认 `1.0`。",
|
||||
"karaoke": "卡拉OK",
|
||||
"karaoke": "卡拉ok",
|
||||
"Uses equalization to eliminate part of a band, usually targeting vocals.": "使用均衡器消除部分频带,通常针对人声。",
|
||||
"level": "级别",
|
||||
"The level of the karaoke. Default is `1.0`": "卡拉OK级别,默认 `1.0`。",
|
||||
|
||||
Reference in New Issue
Block a user