From b0876b93edc41804e97c5dd0faf0ae900eedfcd6 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Sat, 14 Sep 2024 16:51:09 -0300 Subject: [PATCH] feat: message warning hydra close --- src/locales/en/translation.json | 4 ++- src/locales/pt-BR/translation.json | 4 ++- src/locales/pt-PT/translation.json | 4 ++- .../modals/download-settings-modal.tsx | 26 ++++++++++++------- 4 files changed, 25 insertions(+), 13 deletions(-) diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index 4b9bd61a..9a072628 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -128,7 +128,9 @@ "player_count": "Active players", "download_error": "This download option is not available", "download": "Download", - "executable_path_in_use": "Executable already in use by \"{{game}}\"" + "executable_path_in_use": "Executable already in use by \"{{game}}\"", + "warning": "Warning:", + "hydra_needs_to_remain_open": "for this download, Hydra needs to remain open util its conclusion. In case Hydra closes before the conclusion, you will lose your progress." }, "activation": { "title": "Activate Hydra", diff --git a/src/locales/pt-BR/translation.json b/src/locales/pt-BR/translation.json index 79d32ff7..1b14792a 100644 --- a/src/locales/pt-BR/translation.json +++ b/src/locales/pt-BR/translation.json @@ -124,7 +124,9 @@ "player_count": "Jogadores ativos", "download_error": "Essa opção de download falhou", "download": "Baixar", - "executable_path_in_use": "Executável em uso por \"{{game}}\"" + "executable_path_in_use": "Executável em uso por \"{{game}}\"", + "warning": "Aviso:", + "hydra_needs_to_remain_open": "para este download, o Hydra precisa ficar aberto até a conclusão. Caso o Hydra encerre antes da conclusão, perderá seu progresso." }, "activation": { "title": "Ativação", diff --git a/src/locales/pt-PT/translation.json b/src/locales/pt-PT/translation.json index f69ec184..a99f9ae3 100644 --- a/src/locales/pt-PT/translation.json +++ b/src/locales/pt-PT/translation.json @@ -113,7 +113,9 @@ "create_shortcut_success": "Atalho criado com sucesso", "create_shortcut_error": "Erro ao criar atalho", "download": "Transferir", - "executable_path_in_use": "Executável em uso por \"{{game}}\"" + "executable_path_in_use": "Executável em uso por \"{{game}}\"", + "warning": "Aviso:", + "hydra_needs_to_remain_open": "para este download, o Hydra precisa ficar aberto até a conclusão. Caso o Hydra encerre antes da conclusão, perderá seu progresso." }, "activation": { "title": "Ativação", diff --git a/src/renderer/src/pages/game-details/modals/download-settings-modal.tsx b/src/renderer/src/pages/game-details/modals/download-settings-modal.tsx index 4ea2569c..a301110a 100644 --- a/src/renderer/src/pages/game-details/modals/download-settings-modal.tsx +++ b/src/renderer/src/pages/game-details/modals/download-settings-modal.tsx @@ -8,7 +8,7 @@ import { CheckCircleFillIcon, DownloadIcon } from "@primer/octicons-react"; import { Downloader, formatBytes, getDownloadersForUris } from "@shared"; import type { GameRepack } from "@types"; -import { SPACING_UNIT } from "@renderer/theme.css"; +import { SPACING_UNIT, vars } from "@renderer/theme.css"; import { DOWNLOADER_NAME } from "@renderer/constants"; import { useAppSelector, useToast } from "@renderer/hooks"; @@ -129,15 +129,14 @@ export function DownloadSettingsModal({ onClose={onClose} >
+ {t("warning")}{" "} + {t("hydra_needs_to_remain_open")} +
+ )}