From 388031038b0cb91f2dc7cec197360c51a423624a Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Mon, 29 Jul 2024 07:18:45 -0600 Subject: [PATCH] Update translations for Game Record --- src/components/ChallengeModal/ChallengeModal.tsx | 9 +++++++-- src/components/NavBar/NavBar.tsx | 6 ------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/components/ChallengeModal/ChallengeModal.tsx b/src/components/ChallengeModal/ChallengeModal.tsx index af16b56c58..138539e9a9 100644 --- a/src/components/ChallengeModal/ChallengeModal.tsx +++ b/src/components/ChallengeModal/ChallengeModal.tsx @@ -482,7 +482,9 @@ export class ChallengeModal extends Modal settings.tournament_record_round_id = this.props.tournamentRecordRoundId; if (!settings.name) { - settings.name = this.props.game_record_mode ? _("Game Record") : _("Demo Board"); + settings.name = this.props.game_record_mode + ? pgettext("Game record from real life game", "Game Record") + : _("Demo Board"); } console.log("Sending", settings); @@ -1734,7 +1736,10 @@ export class ChallengeModal extends Modal {mode === "open" && {_("Custom Game")}} {mode === "demo" && ( - {this.props.game_record_mode ? _("Game Record") : _("Demo Board")} + {this.props.game_record_mode + ? pgettext("Game record from real life game", "Game Record") + : _("Demo Board")} + ? )} {mode === "player" && ( diff --git a/src/components/NavBar/NavBar.tsx b/src/components/NavBar/NavBar.tsx index 8a7e468183..9a01456d65 100644 --- a/src/components/NavBar/NavBar.tsx +++ b/src/components/NavBar/NavBar.tsx @@ -278,12 +278,6 @@ export function NavBar(): JSX.Element { {_("Demo Board")} )} - {/*user.anonymous ? null : ( - - - {pgettext("Game record from real life game", "Game Record")} - - )*/} {user.anonymous ? null : (