labels changes

master
Tudor Stanciu 2021-05-16 03:52:50 +03:00
parent b12d8cd323
commit 44a9252a9c
5 changed files with 49 additions and 43 deletions

View File

@ -38,26 +38,30 @@
"Forwards": {
"Title": "Forwards",
"From": "From",
"To": "To",
"Options": {
"Title": "Options",
"Name": "Name",
"Active": "Active",
"TrailingSlash": "Trailing slash",
"TrailingSlashTooltip": "A trailing slash is the forward slash placed at the end of a URL. The trailing slash is generally used to mark a directory, and if a URL is not terminated using a trailing slash, this generally points to a file.",
"PathOverwrite": "Path overwrite",
"PathOverwriteTooltip": "Option by which the base path of the application is automatically overwritten in all http text responses received from it.",
"PathInjection": "Path injection",
"PathInjectionTooltip": "PathInjection is useful for applications that doesn't have a configuration for base path. With this option, the reverse proxy server will try to inject the base path in each link from each reasponse content.",
"KeyOverwrite": "Key overwrite",
"KeyOverwriteTooltip": "KeyOverwrite can be used to replace any key from all http responses of a forward."
}
"To": "To"
}
},
"Forward": {
"Title": "Forward from {{from}} to {{to}}",
"Options": {
"Title": "Options",
"Name": "Name",
"Active": "Active",
"TrailingSlash": {
"Label": "Trailing slash",
"Tooltip": "A trailing slash is the forward slash placed at the end of a URL. The trailing slash is generally used to mark a directory, and if a URL is not terminated using a trailing slash, this generally points to a file."
},
"PathOverwrite": {
"Label": "Path overwrite",
"PathOverwriteTooltip": "Option by which the base path of the application is automatically overwritten in all http text responses received from it."
},
"PathInjection": {
"Label": "Path injection",
"PathInjectionTooltip": "PathInjection is useful for applications that doesn't have a configuration for base path. With this option, the reverse proxy server will try to inject the base path in each link from each reasponse content."
},
"KeyOverwrite": {
"Label": "Key overwrite",
"Tooltip": "KeyOverwrite can be used to replace any key from all http responses of a forward.",
"Origin": "Origin",
"Substitute": "Substitute"
}

View File

@ -29,26 +29,30 @@
"Forwards": {
"Title": "Redirectări",
"From": "De la",
"To": "Către",
"Options": {
"Title": "Opțiuni",
"Name": "Denumire",
"Active": "Activă",
"TrailingSlash": "Trailing slash",
"TrailingSlashTooltip": "Bara oblică plasată la sfarșitul unei adrese URL. Slash-ul final este de obicei utilizat pentru a marca un director și dacă o adresă URL nu este încheiată folosind o bară oblică, aceasta indică în general un fișier.",
"PathOverwrite": "Path overwrite",
"PathOverwriteTooltip": "Opțiune prin care calea de bază a aplicației este suprascrisă automat în toate răspunsurile de text http primite de la aceasta.",
"PathInjection": "Path injection",
"PathInjectionTooltip": "PathInjection este util pentru aplicațiile care nu au o configurație pentru calea de bază. Cu această opțiune, serverul proxy invers va încerca să injecteze calea de bază în fiecare link din fiecare conținut de răspuns.",
"KeyOverwrite": "Key overwrite",
"KeyOverwriteTooltip": "KeyOverwrite poate fi utilizat pentru a înlocui orice cheie din toate răspunsurile http ale unei redirecționări."
}
"To": "Către"
}
},
"Forward": {
"Title": "Redirecționare de la {{from}} către {{to}}",
"Options": {
"Title": "Opțiuni",
"Name": "Denumire",
"Active": "Activă",
"TrailingSlash": {
"Label": "Trailing slash",
"Tooltip": "Bara oblică plasată la sfarșitul unei adrese URL. Slash-ul final este de obicei utilizat pentru a marca un director și dacă o adresă URL nu este încheiată folosind o bară oblică, aceasta indică în general un fișier."
},
"PathOverwrite": {
"Label": "Path overwrite",
"PathOverwriteTooltip": "Opțiune prin care calea de bază a aplicației este suprascrisă automat în toate răspunsurile de text http primite de la aceasta."
},
"PathInjection": {
"Label": "Path injection",
"PathInjectionTooltip": "PathInjection este util pentru aplicațiile care nu au o configurație pentru calea de bază. Cu această opțiune, serverul proxy invers va încerca să injecteze calea de bază în fiecare link din fiecare conținut de răspuns."
},
"KeyOverwrite": {
"Label": "Key overwrite",
"Tooltip": "KeyOverwrite poate fi utilizat pentru a înlocui orice cheie din toate răspunsurile http ale unei redirecționări.",
"Origin": "Înlocuit",
"Substitute": "Înlocuitor"
}

View File

@ -30,23 +30,23 @@ const ForwardOptionsComponent = ({ title, options }) => {
const elements = useMemo(
() => [
{
label: "Session.Forwards.Options.TrailingSlash",
tooltip: "Session.Forwards.Options.TrailingSlashTooltip",
label: "Forward.Options.TrailingSlash.Label",
tooltip: "Forward.Options.TrailingSlash.Tooltip",
active: options.trailingSlash
},
{
label: "Session.Forwards.Options.PathOverwrite",
tooltip: "Session.Forwards.Options.PathOverwriteTooltip",
label: "Forward.Options.PathOverwrite.Label",
tooltip: "Forward.Options.PathOverwrite.Tooltip",
active: options.pathOverwrite?.on
},
{
label: "Session.Forwards.Options.PathInjection",
tooltip: "Session.Forwards.Options.PathInjectionTooltip",
label: "Forward.Options.PathInjection.Label",
tooltip: "Forward.Options.PathInjection.Tooltip",
active: options.pathInjection?.on
},
{
label: "Session.Forwards.Options.KeyOverwrite",
tooltip: "Session.Forwards.Options.KeyOverwriteTooltip",
label: "Forward.Options.KeyOverwrite.Label",
tooltip: "Forward.Options.KeyOverwrite.Tooltip",
active: options.keyOverwrite?.on
}
],
@ -63,11 +63,9 @@ const ForwardOptionsComponent = ({ title, options }) => {
>
<TableHead>
<TableRow>
<StyledTableCell>
{t("Session.Forwards.Options.Name")}
</StyledTableCell>
<StyledTableCell>{t("Forward.Options.Name")}</StyledTableCell>
<StyledTableCell align="center">
{t("Session.Forwards.Options.Active")}
{t("Forward.Options.Active")}
</StyledTableCell>
</TableRow>
</TableHead>

View File

@ -29,7 +29,7 @@ const ForwardOptionsDialog = ({ open, forward, handleClose }) => {
aria-describedby="optopns-dialog-content"
>
<DialogTitle id="options-dialog-title">
{t("Session.Forwards.Options.Title")}
{t("Forward.Options.Title")}
</DialogTitle>
<DialogContent id="optopns-dialog-content">
{forward ? <ForwardOptionsContainer forward={forward} /> : "N/A"}

View File

@ -62,7 +62,7 @@ const SessionForwardsComponent = ({
{t("Session.Forwards.To")}
</StyledTableCell>
<StyledTableCell align="right">
{t("Session.Forwards.Options.Title")}
{t("Forward.Options.Title")}
</StyledTableCell>
</TableRow>
</TableHead>
@ -84,7 +84,7 @@ const SessionForwardsComponent = ({
<StyledTableCell>{row.to}</StyledTableCell>
<StyledTableCell align="right">
{row.optionId ? (
<Tooltip title={t("Session.Forwards.Options.Title")}>
<Tooltip title={t("Forward.Options.Title")}>
<IconButton
className={classes.rowButton}
aria-label="options"