Skip to content

Commit

Permalink
Edit Translation
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoz committed Oct 18, 2024
1 parent e0e2701 commit 164f044
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async def editserver(self, interaction: nextcord.Interaction, server_name: str):
try:
server_details = await edit_server_details(server_name)
if not server_details:
await interaction.response.send_message(t("ServerConfig", "editserver.notfound"), ephemeral=True)
await interaction.response.send_message(t("ServerConfig", "editserver.notfound").format(server_name=server_name), ephemeral=True)
return

server_host, rcon_port, connection_port, admin_pass = server_details
Expand All @@ -80,7 +80,7 @@ async def modal_callback(interaction):

await self.refresh_servers()

await interaction.response.send_message("Server details updated and cache refreshed.", ephemeral=True)
await interaction.response.send_message(t("ServerConfig", "editserver.success").format(server_name=server_name), ephemeral=True)

modal.callback = modal_callback
await interaction.response.send_modal(modal)
Expand Down
5 changes: 5 additions & 0 deletions i18n/br.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@
"description": "Remover um servidor do bot.",
"success": "Servidor '{server_name}' removido com sucesso.",
"failed": "Falha ao remover o servidor. Pode ser que ele não exista."
},
"editserver": {
"description": "Editar as configurações de um servidor.",
"notfound": "Servidor {server} não encontrado.",
"success": "Configurações do servidor '{server}' atualizadas com sucesso."
}
},
"QueryCog": {
Expand Down
5 changes: 5 additions & 0 deletions i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@
"description": "Entferne einen Server vom Bot.",
"success": "Server '{server_name}' erfolgreich entfernt.",
"failed": "Fehler beim Entfernen des Servers. Er könnte nicht existieren."
},
"editserver": {
"description": "Bearbeite die Serverkonfiguration.",
"notfound": "Server '{server_name}' nicht gefunden.",
"success": "Server '{server_name}' erfolgreich bearbeitet."
}
},
"QueryCog": {
Expand Down
5 changes: 5 additions & 0 deletions i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@
"description": "Remove a server from the bot.",
"success": "Server '{server_name}' removed successfully.",
"failed": "Failed to remove server. It may not exist."
},
"editserver": {
"description": "Edit a server's details.",
"notfound": "Server '{server_name}' not found.",
"success": "Server '{server_name}' updated successfully."
}
},
"QueryCog": {
Expand Down
5 changes: 5 additions & 0 deletions i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@
"description": "Eliminar un servidor del bot.",
"success": "Servidor '{server_name}' eliminado exitosamente.",
"failed": "No se pudo eliminar el servidor. Puede que no exista."
},
"editserver": {
"description": "Editar la configuración de un servidor.",
"notfound": "Servidor '{server_name}' no encontrado.",
"success": "Servidor '{server_name}' agregado exitosamente."
}
},
"QueryCog": {
Expand Down

0 comments on commit 164f044

Please sign in to comment.