fixes spelling error

This commit is contained in:
Alex Corey
2021-04-22 13:30:28 -04:00
parent 71500a6554
commit 4acae40d4a
13 changed files with 4483 additions and 5970 deletions

View File

@@ -640,6 +640,19 @@ callback URL. Using the URL a host can contact BRAND_NAME
and request a configuration update using this job and request a configuration update using this job
template.", template.",
"Enables creation of a provisioning "Enables creation of a provisioning
callback URL. Using the URL a host can contact {BrandName}
and request a configuration update using this job
template.": Array [
"Enables creation of a provisioning
callback URL. Using the URL a host can contact ",
Array [
"BrandName",
],
"
and request a configuration update using this job
template.",
],
"Enables creation of a provisioning
callback URL. Using the URL a host can contact {brandName} callback URL. Using the URL a host can contact {brandName}
and request a configuration update using this job and request a configuration update using this job
template": Array [ template": Array [
@@ -1161,6 +1174,7 @@ reset by the inventory sync process.",
"Last job": "Last job", "Last job": "Last job",
"Last job run": "Last job run", "Last job run": "Last job run",
"Last modified": "Last modified", "Last modified": "Last modified",
"Last used": "Last used",
"Launch": "Launch", "Launch": "Launch",
"Launch Management Job": "Launch Management Job", "Launch Management Job": "Launch Management Job",
"Launch Template": "Launch Template", "Launch Template": "Launch Template",
@@ -2709,23 +2723,13 @@ message. For more information, refer to the",
}, },
], ],
], ],
"{0, plural, one {This execution environment is currently being used by other resources. Are you sure you want to delete it?} other { Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?}}": Array [ "{0, plural, one {This execution environment is currently being used by other resources. Are you sure you want to delete it?} other {These execution environments could be in use by other resources that rely on them. Are you sure you want to delete them anyway?}}": Array [
Array [ Array [
"0", "0",
"plural", "plural",
Object { Object {
"one": "This execution environment is currently being used by other resources. Are you sure you want to delete it?", "one": "This execution environment is currently being used by other resources. Are you sure you want to delete it?",
"other": " Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?", "other": "These execution environments could be in use by other resources that rely on them. Are you sure you want to delete them anyway?",
},
],
],
"{0, plural, one {This execution environment is currently being used by other resources. Are you sure you want to delete it?} other {Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?}}": Array [
Array [
"0",
"plural",
Object {
"one": "This execution environment is currently being used by other resources. Are you sure you want to delete it?",
"other": "Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?",
}, },
], ],
], ],
@@ -2789,6 +2793,16 @@ message. For more information, refer to the",
}, },
], ],
], ],
"{0, plural, one {You cannot cancel the following job because it is not running:} other {You cannot cancel the following jobs because they are not running:}}": Array [
Array [
"0",
"plural",
Object {
"one": "You cannot cancel the following job because it is not running:",
"other": "You cannot cancel the following jobs because they are not running:",
},
],
],
"{0, plural, one {You cannot cancel the following job because it is not running} other {You cannot cancel the following jobs because they are not running}}": Array [ "{0, plural, one {You cannot cancel the following job because it is not running} other {You cannot cancel the following jobs because they are not running}}": Array [
Array [ Array [
"0", "0",

View File

@@ -17,7 +17,6 @@ import {
DropdownItem, DropdownItem,
Tooltip, Tooltip,
} from '@patternfly/react-core'; } from '@patternfly/react-core';
import { withI18n } from '@lingui/react';
import { t } from '@lingui/macro'; import { t } from '@lingui/macro';
import AlertModal from '../AlertModal'; import AlertModal from '../AlertModal';
import { KebabifiedContext } from '../../contexts/Kebabified'; import { KebabifiedContext } from '../../contexts/Kebabified';
@@ -95,7 +94,6 @@ function ToolbarDeleteButton({
deleteDetailsRequests, deleteDetailsRequests,
warningMessage, warningMessage,
deleteMessage, deleteMessage,
i18n,
cannotDelete, cannotDelete,
}) { }) {
const { isKebabified, onKebabModalChange } = useContext(KebabifiedContext); const { isKebabified, onKebabModalChange } = useContext(KebabifiedContext);
@@ -151,20 +149,18 @@ function ToolbarDeleteButton({
<span>{`: ${itemsUnableToDelete}`}</span> <span>{`: ${itemsUnableToDelete}`}</span>
</> </>
) : ( ) : (
i18n._( t`You do not have permission to delete ${pluralizedItemName}: ${itemsUnableToDelete}`
t`You do not have permission to delete ${pluralizedItemName}: ${itemsUnableToDelete}`
)
)} )}
</div> </div>
); );
} }
if (itemsToDelete.length) { if (itemsToDelete.length) {
return i18n._(t`Delete`); return t`Delete`;
} }
return i18n._(t`Select a row to delete`); return t`Select a row to delete`;
}; };
const modalTitle = i18n._(t`Delete ${pluralizedItemName}?`); const modalTitle = t`Delete ${pluralizedItemName}?`;
const isDisabled = const isDisabled =
itemsToDelete.length === 0 || itemsToDelete.some(cannotDelete); itemsToDelete.length === 0 || itemsToDelete.some(cannotDelete);
@@ -206,7 +202,7 @@ function ToolbarDeleteButton({
return ( return (
<AlertModal <AlertModal
isOpen={deleteMessageError} isOpen={deleteMessageError}
title={i18n._(t`Error!`)} title={t`Error!`}
onClose={() => { onClose={() => {
toggleModal(false); toggleModal(false);
setDeleteMessageError(); setDeleteMessageError();
@@ -235,7 +231,7 @@ function ToolbarDeleteButton({
toggleModal(true); toggleModal(true);
}} }}
> >
{i18n._(t`Delete`)} {t`Delete`}
</DropdownItem> </DropdownItem>
</Tooltip> </Tooltip>
) : ( ) : (
@@ -245,11 +241,11 @@ function ToolbarDeleteButton({
variant="secondary" variant="secondary"
isLoading={isLoading} isLoading={isLoading}
spinnerAriaValueText={isLoading ? 'Loading' : undefined} spinnerAriaValueText={isLoading ? 'Loading' : undefined}
aria-label={i18n._(t`Delete`)} aria-label={t`Delete`}
onClick={() => toggleModal(true)} onClick={() => toggleModal(true)}
isDisabled={isDisabled} isDisabled={isDisabled}
> >
{i18n._(t`Delete`)} {t`Delete`}
</Button> </Button>
</div> </div>
</Tooltip> </Tooltip>
@@ -266,25 +262,25 @@ function ToolbarDeleteButton({
ouiaId="delete-modal-confirm" ouiaId="delete-modal-confirm"
key="delete" key="delete"
variant="danger" variant="danger"
aria-label={i18n._(t`confirm delete`)} aria-label={t`confirm delete`}
isDisabled={Boolean( isDisabled={Boolean(
deleteDetails && itemsToDelete[0]?.type === 'credential_type' deleteDetails && itemsToDelete[0]?.type === 'credential_type'
)} )}
onClick={handleDelete} onClick={handleDelete}
> >
{i18n._(t`Delete`)} {t`Delete`}
</Button>, </Button>,
<Button <Button
key="cancel" key="cancel"
variant="link" variant="link"
aria-label={i18n._(t`cancel delete`)} aria-label={t`cancel delete`}
onClick={() => toggleModal(false)} onClick={() => toggleModal(false)}
> >
{i18n._(t`Cancel`)} {t`Cancel`}
</Button>, </Button>,
]} ]}
> >
<div>{i18n._(t`This action will delete the following:`)}</div> <div>{t`This action will delete the following:`}</div>
{itemsToDelete.map(item => ( {itemsToDelete.map(item => (
<span key={item.id}> <span key={item.id}>
<strong>{item.name || item.username || item.image}</strong> <strong>{item.name || item.username || item.image}</strong>
@@ -318,4 +314,4 @@ ToolbarDeleteButton.defaultProps = {
cannotDelete: item => !item.summary_fields.user_capabilities.delete, cannotDelete: item => !item.summary_fields.user_capabilities.delete,
}; };
export default withI18n()(ToolbarDeleteButton); export default ToolbarDeleteButton;

View File

@@ -636,6 +636,19 @@ callback URL. Using the URL a host can contact BRAND_NAME
and request a configuration update using this job and request a configuration update using this job
template.", template.",
"Enables creation of a provisioning "Enables creation of a provisioning
callback URL. Using the URL a host can contact {BrandName}
and request a configuration update using this job
template.": Array [
"Enables creation of a provisioning
callback URL. Using the URL a host can contact ",
Array [
"BrandName",
],
"
and request a configuration update using this job
template.",
],
"Enables creation of a provisioning
callback URL. Using the URL a host can contact {brandName} callback URL. Using the URL a host can contact {brandName}
and request a configuration update using this job and request a configuration update using this job
template": Array [ template": Array [
@@ -1157,6 +1170,7 @@ reset by the inventory sync process.",
"Last job": "Last job", "Last job": "Last job",
"Last job run": "Last job run", "Last job run": "Last job run",
"Last modified": "Last modified", "Last modified": "Last modified",
"Last used": "Last used",
"Launch": "Launch", "Launch": "Launch",
"Launch Management Job": "Launch Management Job", "Launch Management Job": "Launch Management Job",
"Launch Template": "Launch Template", "Launch Template": "Launch Template",
@@ -2705,23 +2719,13 @@ message. For more information, refer to the",
}, },
], ],
], ],
"{0, plural, one {This execution environment is currently being used by other resources. Are you sure you want to delete it?} other { Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?}}": Array [ "{0, plural, one {This execution environment is currently being used by other resources. Are you sure you want to delete it?} other {These execution environments could be in use by other resources that rely on them. Are you sure you want to delete them anyway?}}": Array [
Array [ Array [
"0", "0",
"plural", "plural",
Object { Object {
"one": "This execution environment is currently being used by other resources. Are you sure you want to delete it?", "one": "This execution environment is currently being used by other resources. Are you sure you want to delete it?",
"other": " Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?", "other": "These execution environments could be in use by other resources that rely on them. Are you sure you want to delete them anyway?",
},
],
],
"{0, plural, one {This execution environment is currently being used by other resources. Are you sure you want to delete it?} other {Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?}}": Array [
Array [
"0",
"plural",
Object {
"one": "This execution environment is currently being used by other resources. Are you sure you want to delete it?",
"other": "Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?",
}, },
], ],
], ],
@@ -2785,6 +2789,16 @@ message. For more information, refer to the",
}, },
], ],
], ],
"{0, plural, one {You cannot cancel the following job because it is not running:} other {You cannot cancel the following jobs because they are not running:}}": Array [
Array [
"0",
"plural",
Object {
"one": "You cannot cancel the following job because it is not running:",
"other": "You cannot cancel the following jobs because they are not running:",
},
],
],
"{0, plural, one {You cannot cancel the following job because it is not running} other {You cannot cancel the following jobs because they are not running}}": Array [ "{0, plural, one {You cannot cancel the following job because it is not running} other {You cannot cancel the following jobs because they are not running}}": Array [
Array [ Array [
"0", "0",
@@ -3740,6 +3754,19 @@ callback URL. Using the URL a host can contact BRAND_NAME
and request a configuration update using this job and request a configuration update using this job
template.", template.",
"Enables creation of a provisioning "Enables creation of a provisioning
callback URL. Using the URL a host can contact {BrandName}
and request a configuration update using this job
template.": Array [
"Enables creation of a provisioning
callback URL. Using the URL a host can contact ",
Array [
"BrandName",
],
"
and request a configuration update using this job
template.",
],
"Enables creation of a provisioning
callback URL. Using the URL a host can contact {brandName} callback URL. Using the URL a host can contact {brandName}
and request a configuration update using this job and request a configuration update using this job
template": Array [ template": Array [
@@ -4261,6 +4288,7 @@ reset by the inventory sync process.",
"Last job": "Last job", "Last job": "Last job",
"Last job run": "Last job run", "Last job run": "Last job run",
"Last modified": "Last modified", "Last modified": "Last modified",
"Last used": "Last used",
"Launch": "Launch", "Launch": "Launch",
"Launch Management Job": "Launch Management Job", "Launch Management Job": "Launch Management Job",
"Launch Template": "Launch Template", "Launch Template": "Launch Template",
@@ -5809,23 +5837,13 @@ message. For more information, refer to the",
}, },
], ],
], ],
"{0, plural, one {This execution environment is currently being used by other resources. Are you sure you want to delete it?} other { Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?}}": Array [ "{0, plural, one {This execution environment is currently being used by other resources. Are you sure you want to delete it?} other {These execution environments could be in use by other resources that rely on them. Are you sure you want to delete them anyway?}}": Array [
Array [ Array [
"0", "0",
"plural", "plural",
Object { Object {
"one": "This execution environment is currently being used by other resources. Are you sure you want to delete it?", "one": "This execution environment is currently being used by other resources. Are you sure you want to delete it?",
"other": " Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?", "other": "These execution environments could be in use by other resources that rely on them. Are you sure you want to delete them anyway?",
},
],
],
"{0, plural, one {This execution environment is currently being used by other resources. Are you sure you want to delete it?} other {Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?}}": Array [
Array [
"0",
"plural",
Object {
"one": "This execution environment is currently being used by other resources. Are you sure you want to delete it?",
"other": "Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?",
}, },
], ],
], ],
@@ -5889,6 +5907,16 @@ message. For more information, refer to the",
}, },
], ],
], ],
"{0, plural, one {You cannot cancel the following job because it is not running:} other {You cannot cancel the following jobs because they are not running:}}": Array [
Array [
"0",
"plural",
Object {
"one": "You cannot cancel the following job because it is not running:",
"other": "You cannot cancel the following jobs because they are not running:",
},
],
],
"{0, plural, one {You cannot cancel the following job because it is not running} other {You cannot cancel the following jobs because they are not running}}": Array [ "{0, plural, one {You cannot cancel the following job because it is not running} other {You cannot cancel the following jobs because they are not running}}": Array [
Array [ Array [
"0", "0",

View File

@@ -663,6 +663,19 @@ callback URL. Using the URL a host can contact BRAND_NAME
and request a configuration update using this job and request a configuration update using this job
template.", template.",
"Enables creation of a provisioning "Enables creation of a provisioning
callback URL. Using the URL a host can contact {BrandName}
and request a configuration update using this job
template.": Array [
"Enables creation of a provisioning
callback URL. Using the URL a host can contact ",
Array [
"BrandName",
],
"
and request a configuration update using this job
template.",
],
"Enables creation of a provisioning
callback URL. Using the URL a host can contact {brandName} callback URL. Using the URL a host can contact {brandName}
and request a configuration update using this job and request a configuration update using this job
template": Array [ template": Array [
@@ -1184,6 +1197,7 @@ reset by the inventory sync process.",
"Last job": "Last job", "Last job": "Last job",
"Last job run": "Last job run", "Last job run": "Last job run",
"Last modified": "Last modified", "Last modified": "Last modified",
"Last used": "Last used",
"Launch": "Launch", "Launch": "Launch",
"Launch Management Job": "Launch Management Job", "Launch Management Job": "Launch Management Job",
"Launch Template": "Launch Template", "Launch Template": "Launch Template",
@@ -2732,23 +2746,13 @@ message. For more information, refer to the",
}, },
], ],
], ],
"{0, plural, one {This execution environment is currently being used by other resources. Are you sure you want to delete it?} other { Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?}}": Array [ "{0, plural, one {This execution environment is currently being used by other resources. Are you sure you want to delete it?} other {These execution environments could be in use by other resources that rely on them. Are you sure you want to delete them anyway?}}": Array [
Array [ Array [
"0", "0",
"plural", "plural",
Object { Object {
"one": "This execution environment is currently being used by other resources. Are you sure you want to delete it?", "one": "This execution environment is currently being used by other resources. Are you sure you want to delete it?",
"other": " Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?", "other": "These execution environments could be in use by other resources that rely on them. Are you sure you want to delete them anyway?",
},
],
],
"{0, plural, one {This execution environment is currently being used by other resources. Are you sure you want to delete it?} other {Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?}}": Array [
Array [
"0",
"plural",
Object {
"one": "This execution environment is currently being used by other resources. Are you sure you want to delete it?",
"other": "Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?",
}, },
], ],
], ],
@@ -2812,6 +2816,16 @@ message. For more information, refer to the",
}, },
], ],
], ],
"{0, plural, one {You cannot cancel the following job because it is not running:} other {You cannot cancel the following jobs because they are not running:}}": Array [
Array [
"0",
"plural",
Object {
"one": "You cannot cancel the following job because it is not running:",
"other": "You cannot cancel the following jobs because they are not running:",
},
],
],
"{0, plural, one {You cannot cancel the following job because it is not running} other {You cannot cancel the following jobs because they are not running}}": Array [ "{0, plural, one {You cannot cancel the following job because it is not running} other {You cannot cancel the following jobs because they are not running}}": Array [
Array [ Array [
"0", "0",
@@ -4504,6 +4518,19 @@ callback URL. Using the URL a host can contact BRAND_NAME
and request a configuration update using this job and request a configuration update using this job
template.", template.",
"Enables creation of a provisioning "Enables creation of a provisioning
callback URL. Using the URL a host can contact {BrandName}
and request a configuration update using this job
template.": Array [
"Enables creation of a provisioning
callback URL. Using the URL a host can contact ",
Array [
"BrandName",
],
"
and request a configuration update using this job
template.",
],
"Enables creation of a provisioning
callback URL. Using the URL a host can contact {brandName} callback URL. Using the URL a host can contact {brandName}
and request a configuration update using this job and request a configuration update using this job
template": Array [ template": Array [
@@ -5025,6 +5052,7 @@ reset by the inventory sync process.",
"Last job": "Last job", "Last job": "Last job",
"Last job run": "Last job run", "Last job run": "Last job run",
"Last modified": "Last modified", "Last modified": "Last modified",
"Last used": "Last used",
"Launch": "Launch", "Launch": "Launch",
"Launch Management Job": "Launch Management Job", "Launch Management Job": "Launch Management Job",
"Launch Template": "Launch Template", "Launch Template": "Launch Template",
@@ -6573,23 +6601,13 @@ message. For more information, refer to the",
}, },
], ],
], ],
"{0, plural, one {This execution environment is currently being used by other resources. Are you sure you want to delete it?} other { Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?}}": Array [ "{0, plural, one {This execution environment is currently being used by other resources. Are you sure you want to delete it?} other {These execution environments could be in use by other resources that rely on them. Are you sure you want to delete them anyway?}}": Array [
Array [ Array [
"0", "0",
"plural", "plural",
Object { Object {
"one": "This execution environment is currently being used by other resources. Are you sure you want to delete it?", "one": "This execution environment is currently being used by other resources. Are you sure you want to delete it?",
"other": " Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?", "other": "These execution environments could be in use by other resources that rely on them. Are you sure you want to delete them anyway?",
},
],
],
"{0, plural, one {This execution environment is currently being used by other resources. Are you sure you want to delete it?} other {Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?}}": Array [
Array [
"0",
"plural",
Object {
"one": "This execution environment is currently being used by other resources. Are you sure you want to delete it?",
"other": "Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?",
}, },
], ],
], ],
@@ -6653,6 +6671,16 @@ message. For more information, refer to the",
}, },
], ],
], ],
"{0, plural, one {You cannot cancel the following job because it is not running:} other {You cannot cancel the following jobs because they are not running:}}": Array [
Array [
"0",
"plural",
Object {
"one": "You cannot cancel the following job because it is not running:",
"other": "You cannot cancel the following jobs because they are not running:",
},
],
],
"{0, plural, one {You cannot cancel the following job because it is not running} other {You cannot cancel the following jobs because they are not running}}": Array [ "{0, plural, one {You cannot cancel the following job because it is not running} other {You cannot cancel the following jobs because they are not running}}": Array [
Array [ Array [
"0", "0",

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -187,7 +187,7 @@ function ExecutionEnvironmentList() {
<Plural <Plural
value={selected.length} value={selected.length}
one="This execution environment is currently being used by other resources. Are you sure you want to delete it?" one="This execution environment is currently being used by other resources. Are you sure you want to delete it?"
other="Deleting these execution environemnts could impact other resources that rely on them. Are you sure you want to delete anyway?" other="These execution environments could be in use by other resources that rely on them. Are you sure you want to delete them anyway?"
/> />
} }
/>, />,