Use delete word instead of remove

This commit is contained in:
dominik-zeglen 2019-08-20 12:05:08 +02:00
parent ad43229a20
commit 6eb05f2367
5 changed files with 15 additions and 15 deletions

View file

@ -25,7 +25,7 @@ const AttributeBulkDeleteDialog: React.StatelessComponent<
onClose={onClose} onClose={onClose}
onConfirm={onConfirm} onConfirm={onConfirm}
title={intl.formatMessage({ title={intl.formatMessage({
defaultMessage: "Remove attributes", defaultMessage: "Delete attributes",
description: "dialog title", description: "dialog title",
id: "attributeBulkDeleteDialogTitle" id: "attributeBulkDeleteDialogTitle"
})} })}
@ -33,7 +33,7 @@ const AttributeBulkDeleteDialog: React.StatelessComponent<
> >
<DialogContentText> <DialogContentText>
<FormattedMessage <FormattedMessage
defaultMessage="Are you sure you want to remove {counter, plural, defaultMessage="Are you sure you want to delete {counter, plural,
one {this attribute} one {this attribute}
other {{displayQuantity} attributes} other {{displayQuantity} attributes}
}?" }?"

View file

@ -30,14 +30,14 @@ const AttributeDeleteDialog: React.FC<AttributeDeleteDialogProps> = ({
onConfirm={onConfirm} onConfirm={onConfirm}
variant="delete" variant="delete"
title={intl.formatMessage({ title={intl.formatMessage({
defaultMessage: "Remove attribute", defaultMessage: "Delete attribute",
description: "dialog title", description: "dialog title",
id: "attributeDeleteDialogTitle" id: "attributeDeleteDialogTitle"
})} })}
> >
<DialogContentText> <DialogContentText>
<FormattedMessage <FormattedMessage
defaultMessage="Are you sure you want to remove {name}?" defaultMessage="Are you sure you want to delete {name}?"
description="dialog content" description="dialog content"
id="attributeDeleteDialogContent" id="attributeDeleteDialogContent"
values={{ values={{

View file

@ -34,7 +34,7 @@ const AttributeValueDeleteDialog: React.FC<AttributeValueDeleteDialogProps> = ({
onConfirm={onConfirm} onConfirm={onConfirm}
variant="delete" variant="delete"
title={intl.formatMessage({ title={intl.formatMessage({
defaultMessage: "Remove attribute value", defaultMessage: "Delete attribute value",
description: "dialog title", description: "dialog title",
id: "attributeValueDeleteDialogTitle" id: "attributeValueDeleteDialogTitle"
})} })}
@ -42,7 +42,7 @@ const AttributeValueDeleteDialog: React.FC<AttributeValueDeleteDialogProps> = ({
<DialogContentText> <DialogContentText>
{useName ? ( {useName ? (
<FormattedMessage <FormattedMessage
defaultMessage='Are you sure you want to remove "{ name }" value? If you remove it you wont be able to assign it to any of the products with "{ attributeName }" attribute.' defaultMessage='Are you sure you want to delete "{ name }" value? If you remove it you wont be able to assign it to any of the products with "{ attributeName }" attribute.'
id="attributeValueDeleteDialogContentWithAttributeName" id="attributeValueDeleteDialogContentWithAttributeName"
values={{ values={{
attributeName, attributeName,
@ -51,8 +51,8 @@ const AttributeValueDeleteDialog: React.FC<AttributeValueDeleteDialogProps> = ({
/> />
) : ( ) : (
<FormattedMessage <FormattedMessage
defaultMessage='Are you sure you want to remove "{ name }" value?' defaultMessage='Are you sure you want to delete "{ name }" value?'
description="remove attribute value" description="delete attribute value"
id="attributeValueDeleteDialogContentWithoutAttributeName" id="attributeValueDeleteDialogContentWithoutAttributeName"
values={{ values={{
name name

View file

@ -67,7 +67,7 @@ const AttributeDetails: React.FC<AttributeDetailsProps> = ({ id, params }) => {
if (data.attributeDelete.errors.length === 0) { if (data.attributeDelete.errors.length === 0) {
notify({ notify({
text: intl.formatMessage({ text: intl.formatMessage({
defaultMessage: "Attribute removed", defaultMessage: "Attribute deleted",
id: "attributeDetailsAttributeRemoveSuccess" id: "attributeDetailsAttributeRemoveSuccess"
}) })
}); });
@ -78,9 +78,9 @@ const AttributeDetails: React.FC<AttributeDetailsProps> = ({ id, params }) => {
if (data.attributeValueDelete.errors.length === 0) { if (data.attributeValueDelete.errors.length === 0) {
notify({ notify({
text: intl.formatMessage({ text: intl.formatMessage({
defaultMessage: "Value removed", defaultMessage: "Value deleted",
description: "attribute value removed", description: "attribute value deleted",
id: "attributeDetailsAttributeValueRemoveSuccess" id: "attributeDetailsAttributeValueDeleteSuccess"
}) })
}); });
closeModal(); closeModal();

View file

@ -73,9 +73,9 @@ const AttributeList: React.FC<AttributeListProps> = ({ params }) => {
closeModal(); closeModal();
notify({ notify({
text: intl.formatMessage({ text: intl.formatMessage({
defaultMessage: "Attributes successfully removed", defaultMessage: "Attributes successfully delete",
description: "remove multiple attributes", description: "deleted multiple attributes",
id: "attributeListAttributesRemoved" id: "attributeListAttributesDeleted"
}) })
}); });
reset(); reset();