Skip to content

Commit

Permalink
Update translations for Game Record
Browse files Browse the repository at this point in the history
  • Loading branch information
anoek committed Aug 19, 2024
1 parent d9f743f commit 3880310
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 7 additions & 2 deletions src/components/ChallengeModal/ChallengeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,9 @@ export class ChallengeModal extends Modal<Events, ChallengeModalProperties, any>
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);
Expand Down Expand Up @@ -1734,7 +1736,10 @@ export class ChallengeModal extends Modal<Events, ChallengeModalProperties, any>
{mode === "open" && <span>{_("Custom Game")}</span>}
{mode === "demo" && (
<span>
{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")}
?
</span>
)}
{mode === "player" && (
Expand Down
6 changes: 0 additions & 6 deletions src/components/NavBar/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,6 @@ export function NavBar(): JSX.Element {
{_("Demo Board")}
</span>
)}
{/*user.anonymous ? null : (
<span className="fakelink" onClick={newRecord}>
<i className="fa fa-sticky-note"></i>
{pgettext("Game record from real life game", "Game Record")}
</span>
)*/}
{user.anonymous ? null : (
<Link to={`/library/${user.id}`}>
<i className="fa fa-book"></i>
Expand Down

0 comments on commit 3880310

Please sign in to comment.