mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-26 04:57:08 -05:00
Clarify tournament admin edit map texts
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -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": "אין צוות שתואם את קוד ההזמנה.",
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -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": "この招待コードにあうチームがみつかりません。",
|
||||
|
||||
@@ -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": "",
|
||||
|
||||
@@ -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": "",
|
||||
|
||||
@@ -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": "",
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -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": "Нет команды, соответствующей коду приглашения.",
|
||||
|
||||
@@ -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": "没有队伍与邀请码相匹配。",
|
||||
|
||||
Reference in New Issue
Block a user