Clarify tournament admin edit map texts
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run

This commit is contained in:
Kalle
2026-05-24 18:41:26 +03:00
parent 67a162afd6
commit 7f0a3d22fd
18 changed files with 22 additions and 44 deletions

View File

@@ -77,7 +77,7 @@
- some a11y labels or text that should not normally be encountered by user (example given, error message by server) can be english
- before adding a new translation, check that one doesn't already exist you can reuse (particularly in the common.json)
- add only English translation and use `pnpm run i18n:sync` to initialize other jsons with empty string ready for translators
- when using namespace e.g. `const { t } = useTranslation("settings"]);` it needs to be defined in the `handle` for that route e.g. `export const handle: SendouRouteHandle = { i18n: ["settings"], ... }`
- when using namespace e.g. `const { t } = useTranslation("settings"]);` it needs to be defined in the `handle` for that route e.g. `export const handle: SendouRouteHandle = { i18n: ["settings"], ... }`. Certain namespaces are always included and you don't have to worry about those: "common", "forms", "game-misc", "weapons", "front", "friends"
## Commit messages

View File

@@ -382,7 +382,7 @@ function EditReportedScoreRow({
teams: [TournamentDataTeam, TournamentDataTeam];
withPoints: boolean;
}) {
const { t } = useTranslation(["common", "tournament"]);
const { t } = useTranslation(["common", "game-misc", "tournament"]);
const tournament = useTournament();
const fetcher = useFetcher();
const [editing, setEditing] = React.useState(false);
@@ -399,8 +399,6 @@ function EditReportedScoreRow({
previousFetcherStateRef.current = fetcher.state;
}, [fetcher.state, fetcher.data]);
const winnerName =
result.winnerTeamId === teams[0].id ? teams[0].name : teams[1].name;
const isKo =
result.opponentOnePoints === 100 || result.opponentTwoPoints === 100;
@@ -412,13 +410,9 @@ function EditReportedScoreRow({
{t("tournament:match.admin.mapNumber", { number: index + 1 })}
</span>
<span className={styles.winnerName}>
{isKo
? t("tournament:match.admin.winnerWonKo", {
teamName: winnerName,
})
: t("tournament:match.admin.winnerWon", {
teamName: winnerName,
})}
{t(`game-misc:MODE_SHORT_${result.mode}`)}{" "}
{t(`game-misc:STAGE_${result.stageId}`)}
{isKo ? ` ${t("tournament:match.admin.koSuffix")}` : null}
</span>
</div>
<SendouButton

View File

@@ -142,8 +142,7 @@
"match.admin.castChannelUpdated": "",
"match.admin.editReportedScores": "",
"match.admin.mapNumber": "",
"match.admin.winnerWon": "",
"match.admin.winnerWonKo": "",
"match.admin.koSuffix": "",
"join.error.MISSING_CODE": "Invitationskoden mangler. Blev hele linket kopieret?",
"join.error.SHORT_CODE": "Invitationskoden har ikke den korrekte længde. Blev hele linket kopieret?",
"join.error.NO_TEAM_MATCHING_CODE": "Ingen hold passer til denne invitationskode",

View File

@@ -142,8 +142,7 @@
"match.admin.castChannelUpdated": "",
"match.admin.editReportedScores": "",
"match.admin.mapNumber": "",
"match.admin.winnerWon": "",
"match.admin.winnerWonKo": "",
"match.admin.koSuffix": "",
"join.error.MISSING_CODE": "Invite-Code fehlt. Wurde die vollständige URL kopiert?",
"join.error.SHORT_CODE": "Invite-Code hat nicht die richtige Länge. Wurde die vollständige URL kopiert?",
"join.error.NO_TEAM_MATCHING_CODE": "Kein Team mit diesem Invite-Code gefunden.",

View File

@@ -140,10 +140,9 @@
"match.admin.lockToBeCasted": "Lock to be casted",
"match.admin.lockingInfo": "You can lock the match to indicate that it should not be started before the cast is ready. Match being locked prevents score reporting and hides the map list till the organizer/streamer unlocks it.",
"match.admin.castChannelUpdated": "Cast channel updated",
"match.admin.editReportedScores": "Edit reported scores",
"match.admin.editReportedScores": "Edit maps",
"match.admin.mapNumber": "Map {{number}}",
"match.admin.winnerWon": "{{teamName}} won",
"match.admin.winnerWonKo": "{{teamName}} won (KO)",
"match.admin.koSuffix": "(KO)",
"join.error.MISSING_CODE": "Invite code is missing. Was the full URL copied?",
"join.error.SHORT_CODE": "Invite code is not the right length. Was the full URL copied?",
"join.error.NO_TEAM_MATCHING_CODE": "No team matching the invite code.",

View File

@@ -144,8 +144,7 @@
"match.admin.castChannelUpdated": "",
"match.admin.editReportedScores": "",
"match.admin.mapNumber": "",
"match.admin.winnerWon": "",
"match.admin.winnerWonKo": "",
"match.admin.koSuffix": "",
"join.error.MISSING_CODE": "Falta código de invitación. ¿Copiaste el enlace completo?",
"join.error.SHORT_CODE": "Código de invitación es de cantidad incorrecata. ¿Copiaste el enlace completo?",
"join.error.NO_TEAM_MATCHING_CODE": "Ningún equipo coincide con el código de invitación.",

View File

@@ -144,8 +144,7 @@
"match.admin.castChannelUpdated": "",
"match.admin.editReportedScores": "",
"match.admin.mapNumber": "",
"match.admin.winnerWon": "",
"match.admin.winnerWonKo": "",
"match.admin.koSuffix": "",
"join.error.MISSING_CODE": "Falta código de invitación. ¿Copiaste el enlace completo?",
"join.error.SHORT_CODE": "Código de invitación es de cantidad incorrecata. ¿Copiaste el enlace completo?",
"join.error.NO_TEAM_MATCHING_CODE": "Ningún equipo coincide con el código de invitación.",

View File

@@ -144,8 +144,7 @@
"match.admin.castChannelUpdated": "",
"match.admin.editReportedScores": "",
"match.admin.mapNumber": "",
"match.admin.winnerWon": "",
"match.admin.winnerWonKo": "",
"match.admin.koSuffix": "",
"join.error.MISSING_CODE": "Le code d'invitation est manquant. L'URL complète a-t-elle été copiée ?",
"join.error.SHORT_CODE": "Le code d'invitation n'a pas la bonne longueur. L'URL complète a-t-elle été copiée ?",
"join.error.NO_TEAM_MATCHING_CODE": "Aucune équipe ne correspond au code d'invitation.",

View File

@@ -144,8 +144,7 @@
"match.admin.castChannelUpdated": "",
"match.admin.editReportedScores": "",
"match.admin.mapNumber": "",
"match.admin.winnerWon": "",
"match.admin.winnerWonKo": "",
"match.admin.koSuffix": "",
"join.error.MISSING_CODE": "Le code d'invitation est manquant. L'URL complète a-t-elle été copiée ?",
"join.error.SHORT_CODE": "Le code d'invitation n'a pas la bonne longueur. L'URL complète a-t-elle été copiée ?",
"join.error.NO_TEAM_MATCHING_CODE": "Aucune équipe ne correspond au code d'invitation.",

View File

@@ -144,8 +144,7 @@
"match.admin.castChannelUpdated": "",
"match.admin.editReportedScores": "",
"match.admin.mapNumber": "",
"match.admin.winnerWon": "",
"match.admin.winnerWonKo": "",
"match.admin.koSuffix": "",
"join.error.MISSING_CODE": "חסר קוד הזמנה. האם כתובת האתר המלאה הועתקה?",
"join.error.SHORT_CODE": "קוד ההזמנה אינו באורך המתאים. האם כתובת האתר המלאה הועתקה?",
"join.error.NO_TEAM_MATCHING_CODE": "אין צוות שתואם את קוד ההזמנה.",

View File

@@ -144,8 +144,7 @@
"match.admin.castChannelUpdated": "",
"match.admin.editReportedScores": "",
"match.admin.mapNumber": "",
"match.admin.winnerWon": "",
"match.admin.winnerWonKo": "",
"match.admin.koSuffix": "",
"join.error.MISSING_CODE": "Il codice invito è mancante. Hai copiato l'intero URL?",
"join.error.SHORT_CODE": "Il codice invito non ha la lunghezza giusta. Hai copiato l'intero URL?",
"join.error.NO_TEAM_MATCHING_CODE": "Nessun team associato a questo codice invito.",

View File

@@ -138,8 +138,7 @@
"match.admin.castChannelUpdated": "",
"match.admin.editReportedScores": "",
"match.admin.mapNumber": "",
"match.admin.winnerWon": "",
"match.admin.winnerWonKo": "",
"match.admin.koSuffix": "",
"join.error.MISSING_CODE": "招待コードがみつかりません。すべての URL をコピーしましたか?",
"join.error.SHORT_CODE": "招待コードの長さが正しくありません。すべての URL をコピーしましたか?",
"join.error.NO_TEAM_MATCHING_CODE": "この招待コードにあうチームがみつかりません。",

View File

@@ -138,8 +138,7 @@
"match.admin.castChannelUpdated": "",
"match.admin.editReportedScores": "",
"match.admin.mapNumber": "",
"match.admin.winnerWon": "",
"match.admin.winnerWonKo": "",
"match.admin.koSuffix": "",
"join.error.MISSING_CODE": "",
"join.error.SHORT_CODE": "",
"join.error.NO_TEAM_MATCHING_CODE": "",

View File

@@ -142,8 +142,7 @@
"match.admin.castChannelUpdated": "",
"match.admin.editReportedScores": "",
"match.admin.mapNumber": "",
"match.admin.winnerWon": "",
"match.admin.winnerWonKo": "",
"match.admin.koSuffix": "",
"join.error.MISSING_CODE": "",
"join.error.SHORT_CODE": "",
"join.error.NO_TEAM_MATCHING_CODE": "",

View File

@@ -146,8 +146,7 @@
"match.admin.castChannelUpdated": "",
"match.admin.editReportedScores": "",
"match.admin.mapNumber": "",
"match.admin.winnerWon": "",
"match.admin.winnerWonKo": "",
"match.admin.koSuffix": "",
"join.error.MISSING_CODE": "",
"join.error.SHORT_CODE": "",
"join.error.NO_TEAM_MATCHING_CODE": "",

View File

@@ -144,8 +144,7 @@
"match.admin.castChannelUpdated": "",
"match.admin.editReportedScores": "",
"match.admin.mapNumber": "",
"match.admin.winnerWon": "",
"match.admin.winnerWonKo": "",
"match.admin.koSuffix": "",
"join.error.MISSING_CODE": "O código de convite está faltando. O URL foi copiado completamente?",
"join.error.SHORT_CODE": "O código de convite está com o comprimento incorreto. O URL foi copiado completamente?",
"join.error.NO_TEAM_MATCHING_CODE": "Nenhum time corresponde ao código de convite.",

View File

@@ -146,8 +146,7 @@
"match.admin.castChannelUpdated": "",
"match.admin.editReportedScores": "",
"match.admin.mapNumber": "",
"match.admin.winnerWon": "",
"match.admin.winnerWonKo": "",
"match.admin.koSuffix": "",
"join.error.MISSING_CODE": "Код приглашения отсутствует. Был ли URL скопирован полностью?",
"join.error.SHORT_CODE": "Длина кода приглашения неверна. Был ли URL скопирован полностью?",
"join.error.NO_TEAM_MATCHING_CODE": "Нет команды, соответствующей коду приглашения.",

View File

@@ -138,8 +138,7 @@
"match.admin.castChannelUpdated": "",
"match.admin.editReportedScores": "",
"match.admin.mapNumber": "",
"match.admin.winnerWon": "",
"match.admin.winnerWonKo": "",
"match.admin.koSuffix": "",
"join.error.MISSING_CODE": "缺少邀请码。您是否复制了完整URL",
"join.error.SHORT_CODE": "邀请码长度不符。您是否复制了完整URL",
"join.error.NO_TEAM_MATCHING_CODE": "没有队伍与邀请码相匹配。",