fix: fix grammatical mistakes in the English translation

This commit is contained in:
Dawid Wysokiński 2020-10-26 06:40:05 +01:00
parent 43c0edf5dc
commit c07b147cbd
9 changed files with 27 additions and 26 deletions

View File

@ -39,7 +39,7 @@ const useStyles = makeStyles(theme => ({
function LanguageSelector({ lang, languages, pathname }) { function LanguageSelector({ lang, languages, pathname }) {
const classes = useStyles(); const classes = useStyles();
const formatURL = l => { const buildURL = l => {
if (pathname.includes(lang)) { if (pathname.includes(lang)) {
return pathname.replace(lang, l); return pathname.replace(lang, l);
} }
@ -51,7 +51,7 @@ function LanguageSelector({ lang, languages, pathname }) {
{languages.map(l => ( {languages.map(l => (
<Link <Link
key={l} key={l}
to={formatURL(l).replace(`/${languages[0]}/`, "/")} to={buildURL(l).replace(`/${languages[0]}/`, "/")}
className={classes.flagWrapper} className={classes.flagWrapper}
> >
<img className={classes.flag} src={flags[l]} alt={l} /> <img className={classes.flag} src={flags[l]} alt={l} />

View File

@ -22,10 +22,10 @@ const CommandsPage = ({ location, pageContext }) => {
<Container> <Container>
<Box mb={3} component="section"> <Box mb={3} component="section">
<Typography variant="h2" component="h1" align="center" gutterBottom> <Typography variant="h2" component="h1" align="center" gutterBottom>
{t.commandsForAllSection.title} {t.commandsForEveryoneSection.title}
</Typography> </Typography>
<Grid container spacing={2}> <Grid container spacing={2}>
{c.commandsForAll.map(cmd => ( {c.commandsForEveryone.map(cmd => (
<Grid key={cmd.command} item xs={12} sm={6}> <Grid key={cmd.command} item xs={12} sm={6}>
<Command {...cmd} /> <Command {...cmd} />
</Grid> </Grid>

View File

@ -1,4 +1,4 @@
const commandsForAll = [ const commandsForEveryone = [
{ {
command: "tw!help", command: "tw!help",
commandSyntax: "tw!help", commandSyntax: "tw!help",
@ -10,7 +10,7 @@ const commandsForAll = [
commandSyntax: commandSyntax:
"tw!tribe topoda [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]", "tw!tribe topoda [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
description: description:
"This command generates player list from selected tribes ordered by ODA.", "This command generates a player list from selected tribes ordered by ODA.",
example: "tw!tribe topoda pl143 1 975 170", example: "tw!tribe topoda pl143 1 975 170",
}, },
{ {
@ -18,7 +18,7 @@ const commandsForAll = [
commandSyntax: commandSyntax:
"tw!tribe topodd [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]", "tw!tribe topodd [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
description: description:
"This command generates player list from selected tribes ordered by ODD.", "This command generates a player list from selected tribes ordered by ODD.",
example: "tw!tribe topodd pl143 1 975 170", example: "tw!tribe topodd pl143 1 975 170",
}, },
{ {
@ -26,7 +26,7 @@ const commandsForAll = [
commandSyntax: commandSyntax:
"tw!tribe topods [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]", "tw!tribe topods [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
description: description:
"This command generates player list from selected tribes ordered by ODS.", "This command generates a player list from selected tribes ordered by ODS.",
example: "tw!tribe topods pl143 1 975 170", example: "tw!tribe topods pl143 1 975 170",
}, },
{ {
@ -34,7 +34,7 @@ const commandsForAll = [
commandSyntax: commandSyntax:
"tw!tribe topod [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]", "tw!tribe topod [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
description: description:
"This command generates player list from selected tribes ordered by OD.", "This command generates a player list from selected tribes ordered by OD.",
example: "tw!tribe topod pl143 1 975 170", example: "tw!tribe topod pl143 1 975 170",
}, },
{ {
@ -42,7 +42,7 @@ const commandsForAll = [
commandSyntax: commandSyntax:
"tw!tribe toppoints [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]", "tw!tribe toppoints [server] [page] [tribe_id1] [tribe_id2] ... [tribe_idn]",
description: description:
"This command generates player list from selected tribes ordered by points.", "This command generates a player list from selected tribes ordered by points.",
example: "tw!tribe toppoints pl143 1 975 170", example: "tw!tribe toppoints pl143 1 975 170",
}, },
]; ];
@ -58,7 +58,7 @@ const adminCommands = [
command: "tw!groups", command: "tw!groups",
commandSyntax: "tw!addgroup", commandSyntax: "tw!addgroup",
description: description:
"This command shows you a list of groups created by this guild.", "This command shows you a list of groups created by this server.",
example: "tw!addgroup", example: "tw!addgroup",
}, },
{ {
@ -76,7 +76,8 @@ const adminCommands = [
{ {
command: "tw!observations", command: "tw!observations",
commandSyntax: "tw!observations [group ID from tw!groups]", commandSyntax: "tw!observations [group ID from tw!groups]",
description: "This command shows a list of observed tribes by this group.", description:
"This command shows a list of monitored tribes added to this group.",
example: "tw!observations 1", example: "tw!observations 1",
}, },
{ {
@ -147,6 +148,6 @@ const adminCommands = [
]; ];
export default { export default {
commandsForAll, commandsForEveryone,
adminCommands, adminCommands,
}; };

View File

@ -1,4 +1,4 @@
const commandsForAll = [ const commandsForEveryone = [
{ {
command: "tw!help", command: "tw!help",
commandSyntax: "tw!help", commandSyntax: "tw!help",
@ -147,6 +147,6 @@ const adminCommands = [
]; ];
export default { export default {
commandsForAll, commandsForEveryone,
adminCommands, adminCommands,
}; };

View File

@ -1,10 +1,10 @@
export default { export default {
title: "Commands", title: "Commands",
description: "List of commands offered by TWHelp Discord Bot with examples", description: "List of commands offered by TWHelp Discord Bot with examples",
commandsForAllSection: { commandsForEveryoneSection: {
title: "Commands for all guild members", title: "For everyone",
}, },
adminCommandsSection: { adminCommandsSection: {
title: "Admin commands", title: "For admins",
}, },
}; };

View File

@ -2,10 +2,10 @@ export default {
title: "Komendy", title: "Komendy",
description: description:
"Lista komend oferowanych przez TWHelp Discord Bot z przykładami", "Lista komend oferowanych przez TWHelp Discord Bot z przykładami",
commandsForAllSection: { commandsForEveryoneSection: {
title: "Komendy dla wszystkich", title: "Dla wszystkich",
}, },
adminCommandsSection: { adminCommandsSection: {
title: "Komendy przeznaczone tylko dla administratorów", title: "Dla adminów",
}, },
}; };

View File

@ -43,7 +43,7 @@ const IndexPage = ({ location, pageContext }) => {
botInviteUrl botInviteUrl
} }
} }
allSs: allFile(filter: { absolutePath: { regex: "/screenshots/" } }) { screenshots: allFile(filter: { absolutePath: { regex: "/screenshots/" } }) {
edges { edges {
node { node {
relativePath relativePath
@ -59,7 +59,7 @@ const IndexPage = ({ location, pageContext }) => {
} }
`); `);
const t = translations[pageContext.langKey]; const t = translations[pageContext.langKey];
const ss = data.allSs.edges.find(edge => { const ss = data.screenshots.edges.find(edge => {
if (edge.node.relativePath.includes(pageContext.langKey)) return edge; if (edge.node.relativePath.includes(pageContext.langKey)) return edge;
return null; return null;
}); });

View File

@ -1,11 +1,11 @@
export default { export default {
title: "Home", title: "Home",
description: description:
"Discord bot for online game Tribalwars. | Real-time notifications about lost/conquered village.", "Discord bot for the online game Tribalwars. | Real-time notifications about lost/conquered village.",
header: { header: {
title: "Observe your tribe ennoblements!", title: "Observe your tribe ennoblements!",
description: description:
"This bot notifies you about conquered/lost village in near real-time.", "This bot notifies you of conquered/lost village in near real-time.",
inviteBot: "Invite bot to your server", inviteBot: "Invite bot to your server",
commands: "Commands", commands: "Commands",
}, },

View File

@ -1,7 +1,7 @@
export default { export default {
title: "Strona główna", title: "Strona główna",
description: description:
"Powiadomienia o podbiciu/straceniu wioski przez plemię w grze TribalWars na Twoim serwerze Discord.", "Bot na Discorda dla gry Plemiona. | Notyfikacje o podbiciu/stracie wioski w czasie rzeczywistym.",
header: { header: {
title: "Obserwuj podboje swojego plemienia!", title: "Obserwuj podboje swojego plemienia!",
description: description: