From 164f044a69ca51b06db1cc00b204a698dcd29a51 Mon Sep 17 00:00:00 2001 From: Kozejin <2613841+dkoz@users.noreply.github.com> Date: Fri, 18 Oct 2024 00:54:12 -0400 Subject: [PATCH] Edit Translation --- cogs/servers.py | 4 ++-- i18n/br.json | 5 +++++ i18n/de.json | 5 +++++ i18n/en.json | 5 +++++ i18n/es.json | 5 +++++ 5 files changed, 22 insertions(+), 2 deletions(-) diff --git a/cogs/servers.py b/cogs/servers.py index 2382522..54752fd 100644 --- a/cogs/servers.py +++ b/cogs/servers.py @@ -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 @@ -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) diff --git a/i18n/br.json b/i18n/br.json index 05beb83..d318b95 100644 --- a/i18n/br.json +++ b/i18n/br.json @@ -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": { diff --git a/i18n/de.json b/i18n/de.json index 11b562a..d1dc07a 100644 --- a/i18n/de.json +++ b/i18n/de.json @@ -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": { diff --git a/i18n/en.json b/i18n/en.json index 691d2fb..fb4cecd 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -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": { diff --git a/i18n/es.json b/i18n/es.json index 6f1cf73..ea70442 100644 --- a/i18n/es.json +++ b/i18n/es.json @@ -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": {