From af1b3d4535f55bc98ec0946adf905b38405aaf39 Mon Sep 17 00:00:00 2001 From: Moyasee Date: Wed, 17 Sep 2025 12:35:46 +0300 Subject: [PATCH] Fix: Updated EN and RU translations to use correct keywords --- src/locales/en/translation.json | 14 +++++++------- src/locales/ru/translation.json | 8 ++++---- .../modals/change-game-playtime-modal.tsx | 12 ++++++------ .../game-details/modals/game-options-modal.tsx | 6 +++--- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index 6b14b5b7..d191620c 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -198,13 +198,13 @@ "download_error_gofile_quota_exceeded": "You have exceeded your Gofile monthly quota. Please await the quota to reset.", "download_error_real_debrid_account_not_authorized": "Your Real-Debrid account is not authorized to make new downloads. Please check your account settings and try again.", "download_error_not_cached_on_real_debrid": "This download is not available on Real-Debrid and polling download status from Real-Debrid is not yet available.", - "change_playtime_title": "Change playtime", - "change_playtime_description": "Manually update the playtime for {{game}}", - "change_playtime": "Change playtime", - "change_playtime_success": "Playtime updated successfully", - "change_playtime_error": "Failed to update playtime", - "change_game_playtime": "Change game playtime", - "manual_playtime_warning": "Your hours will be marked as manually changed, and this cannot be undone.", + "update_playtime_title": "Update playtime", + "update_playtime_description": "Manually update the playtime for {{game}}", + "update_playtime": "Update playtime", + "update_playtime_success": "Playtime updated successfully", + "update_playtime_error": "Failed to update playtime", + "update_game_playtime": "Update game playtime", + "manual_playtime_warning": "Your hours will be marked as manually updated, and this cannot be undone.", "download_error_not_cached_on_torbox": "This download is not available on TorBox and polling download status from TorBox is not yet available.", "download_error_not_cached_on_hydra": "This download is not available on Nimbus.", "game_removed_from_favorites": "Game removed from favorites", diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json index 47684030..e576e5d9 100644 --- a/src/locales/ru/translation.json +++ b/src/locales/ru/translation.json @@ -195,10 +195,10 @@ "download_error_gofile_quota_exceeded": "Вы превысили месячную квоту Gofile. Пожалуйста, подождите, пока квота не будет восстановлена.", "download_error_real_debrid_account_not_authorized": "Ваш аккаунт Real-Debrid не авторизован для осуществления новых загрузок. Пожалуйста, проверьте настройки учетной записи и повторите попытку.", "download_error_not_cached_on_real_debrid": "Эта загрузка недоступна на Real-Debrid, и получение статуса загрузки с Real-Debrid пока недоступно.", - "change_playtime_title": "Изменить время игры", - "change_playtime_description": "Вручную обновите время игры для {{game}}", - "change_playtime": "Изменить время игры", - "change_game_playtime": "Изменить время игры", + "update_playtime_title": "Обновить время игры", + "update_playtime_description": "Вручную обновите время игры для {{game}}", + "update_playtime": "Обновить время игры", + "update_game_playtime": "Обновить время игры", "download_error_not_cached_on_torbox": "Эта загрузка недоступна на TorBox, и получить статус загрузки с TorBox пока невозможно.", "game_added_to_favorites": "Игра добавлена в избранное", "game_removed_from_favorites": "Игра удалена из избранного", diff --git a/src/renderer/src/pages/game-details/modals/change-game-playtime-modal.tsx b/src/renderer/src/pages/game-details/modals/change-game-playtime-modal.tsx index 1ac6ee50..7dda654f 100644 --- a/src/renderer/src/pages/game-details/modals/change-game-playtime-modal.tsx +++ b/src/renderer/src/pages/game-details/modals/change-game-playtime-modal.tsx @@ -69,11 +69,11 @@ export function ChangeGamePlaytimeModal({ setIsSubmitting(true); try { await changePlaytime(totalSeconds); - onSuccess?.(t("change_playtime_success")); + onSuccess?.(t("update_playtime_success")); onClose(); } catch (error) { - onError?.(t("change_playtime_error")); - } finally { + console.log(error); + onError?.(t("update_playtime_error")); } finally { setIsSubmitting(false); } }; @@ -112,8 +112,8 @@ export function ChangeGamePlaytimeModal({ @@ -154,7 +154,7 @@ export function ChangeGamePlaytimeModal({ theme="outline" disabled={!isValid || isSubmitting} > - {t("change_playtime")} + {t("update_playtime")}