Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change delete to remove in user visible strings
michalfb20c086f405
diff --git a/templates/cart/index.html b/templates/cart/index.htmlindex 551df87565..177c66a2a5 100644--- a/templates/cart/index.html+++ b/templates/cart/index.html@@ -16,7 +16,7 @@{% block content %}<div class="alert alert-success d-block d-sm-none remove-product-alert">- {% trans "Product has been deleted from cart" context "Cart message" %}+ {% trans "Product has been removed from cart" context "Cart message" %}<button type="button" class="close close-msg" aria-hidden="true">×</button></div><div class="cart">diff --git a/templates/dashboard/base_modal_confirm_delete.html b/templates/dashboard/base_modal_confirm_delete.htmlindex a187193553..e5f7e1cebe 100644--- a/templates/dashboard/base_modal_confirm_delete.html+++ b/templates/dashboard/base_modal_confirm_delete.html@@ -7,7 +7,7 @@<div class="col s12"><h5>{% block title %}- {% trans "Delete" context "Dashboard confirmation modal" %}+ {% trans "Remove" context "Dashboard confirmation modal" %}{% endblock %}</h5></div>@@ -19,7 +19,7 @@<div class="modal-footer">{% block footer %}<button type="submit" class="modal-action btn-flat">- {% trans "Delete" context "Dashboard delete action" %}+ {% trans "Remove" context "Dashboard delete action" %}</button><a href="#!" class="modal-action modal-close btn-flat">{% trans "Cancel" context "Dashboard cancel action" %}diff --git a/templates/dashboard/category/modal/confirm_delete.html b/templates/dashboard/category/modal/confirm_delete.htmlindex 43e80d124d..45932aa854 100644--- a/templates/dashboard/category/modal/confirm_delete.html+++ b/templates/dashboard/category/modal/confirm_delete.html@@ -8,18 +8,18 @@{% endblock %}{% block title %}-{% blocktrans with category=category trimmed context "Delete category modal title" %}-Delete category {{ category }}+{% blocktrans with category=category trimmed context "Remove category modal title" %}+Remove category {{ category }}{% endblocktrans %}{% endblock %}{% block content %}-{% blocktrans with category=category trimmed context "Delete category modal title" %}-Are you sure you want to delete category <strong>{{ category }}</strong>?+{% blocktrans with category=category trimmed context "Remove category modal title" %}+Are you sure you want to remove category <strong>{{ category }}</strong>?{% endblocktrans %}{% if descendants %}<p>-{% trans "The following child categories will be deleted:" context "Delete category form text about descendant categories" %}+{% trans "The following child categories will be removed:" context "Delete category form text about descendant categories" %}<ul>{% recursetree descendants %}<li>@@ -36,10 +36,10 @@ Are you sure you want to delete category <strong>{{ category }}</strong>?{% endif %}{% if products_count %}<p>-{% blocktrans count counter=products_count trimmed context "Delete category form text about products" %}- There is one product in this category that will be deleted.+{% blocktrans count counter=products_count trimmed context "Remove category form text about products" %}+ There is one product in this category that will be removed.{% plural %}- There are {{ counter }} products in this category that will be deleted.+ There are {{ counter }} products in this category that will be removed.{% endblocktrans %}</p>{% endif %}diff --git a/templates/dashboard/discount/sale/modal/confirm_delete.html b/templates/dashboard/discount/sale/modal/confirm_delete.htmlindex d07e418fc0..1a87742eb5 100644--- a/templates/dashboard/discount/sale/modal/confirm_delete.html+++ b/templates/dashboard/discount/sale/modal/confirm_delete.html@@ -5,13 +5,13 @@{% block action_url %}{% url "dashboard:sale-delete" pk=sale.pk %}{% endblock %}{% block title %}-{% blocktrans trimmed context "Delete sale (discount) text" %}-Delete sale {{ sale }}+{% blocktrans trimmed context "Remove sale (discount) text" %}+Remove sale {{ sale }}{% endblocktrans %}{% endblock title %}{% block content %}-{% blocktrans trimmed context "Delete sale (discount) text" %}+{% blocktrans trimmed context "Remove sale (discount) text" %}Are you sure you want to selete <strong>{{ sale }}</strong>?{% endblocktrans %}{% endblock content %}diff --git a/templates/dashboard/discount/voucher/modal/confirm_delete.html b/templates/dashboard/discount/voucher/modal/confirm_delete.htmlindex b874678f85..802ea855b5 100644--- a/templates/dashboard/discount/voucher/modal/confirm_delete.html+++ b/templates/dashboard/discount/voucher/modal/confirm_delete.html@@ -7,13 +7,13 @@{% endblock %}{% block title %}-{% blocktrans trimmed context "Delete voucher text" %}-Delete voucher {{ voucher }}+{% blocktrans trimmed context "Remove voucher text" %}+Remove voucher {{ voucher }}{% endblocktrans %}{% endblock title %}{% block content %}-{% blocktrans trimmed context "Delete voucher text" %}-Are you sure you want to delete voucher <strong>{{ voucher }}</strong>?+{% blocktrans trimmed context "Remove voucher text" %}+Are you sure you want to remove voucher <strong>{{ voucher }}</strong>?{% endblocktrans %}{% endblock content %}diff --git a/templates/dashboard/group/modal/confirm_delete.html b/templates/dashboard/group/modal/confirm_delete.htmlindex 2e1499a3fa..4fa8cee42b 100644--- a/templates/dashboard/group/modal/confirm_delete.html+++ b/templates/dashboard/group/modal/confirm_delete.html@@ -5,14 +5,14 @@{% block action_url %}{% url 'dashboard:group-delete' pk=group.pk %}{% endblock %}{% block title %}-{% blocktrans trimmed context "Modal delete group text" %}- Delete group <strong>{{ group }}</strong>?+{% blocktrans trimmed context "Modal remove group text" %}+ Remove group <strong>{{ group }}</strong>?{% endblocktrans %}{% endblock %}{% block content %}-{% blocktrans trimmed context "Modal delete group text" %}-<p>Are you sure you want to delete group {{ group }}?</p>+{% blocktrans trimmed context "Modal remove group text" %}+<p>Are you sure you want to remove group {{ group }}?</p><p>Users might lose permissions related to this group.</p>{% endblocktrans %}{% endblock content %}diff --git a/templates/dashboard/product/modal/confirm_delete.html b/templates/dashboard/product/modal/confirm_delete.htmlindex 6528f9ab96..232fe38feb 100644--- a/templates/dashboard/product/modal/confirm_delete.html+++ b/templates/dashboard/product/modal/confirm_delete.html@@ -6,13 +6,13 @@{% block action_url %}{% url 'dashboard:product-delete' pk=product.pk %}{% endblock %}{% block title %}-{% blocktrans trimmed context "Modal delete product text" %}-Delete product {{ product }}+{% blocktrans trimmed context "Modal remove product text" %}+Remove product {{ product }}{% endblocktrans %}{% endblock %}{% block content %}-{% blocktrans trimmed context "Modal delete product text" %}-Are you sure you want to delete product <strong>{{ product }}</strong>?+{% blocktrans trimmed context "Modal remove product text" %}+Are you sure you want to remove product <strong>{{ product }}</strong>?{% endblocktrans %}{% endblock content %}diff --git a/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.html b/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.htmlindex 4e8b512cbd..d36ee15480 100644--- a/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.html+++ b/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.html@@ -7,13 +7,13 @@{% endblock %}{% block title %}-{% blocktrans trimmed context "Modal delete attribute text" %}-Delete attribute {{ attribute }}+{% blocktrans trimmed context "Modal remove attribute text" %}+Remove attribute {{ attribute }}{% endblocktrans %}{% endblock title %}{% block content %}-{% blocktrans trimmed context "Modal delete attribute text" %}-Are you sure you want to delete attribute <strong>{{ attribute }}</strong>?+{% blocktrans trimmed context "Modal remove attribute text" %}+Are you sure you want to remove attribute <strong>{{ attribute }}</strong>?{% endblocktrans %}{% endblock content %}diff --git a/templates/dashboard/product/product_class/modal/confirm_delete.html b/templates/dashboard/product/product_class/modal/confirm_delete.htmlindex 1d70810ce9..e8106682a4 100644--- a/templates/dashboard/product/product_class/modal/confirm_delete.html+++ b/templates/dashboard/product/product_class/modal/confirm_delete.html@@ -7,24 +7,24 @@{% block action_url %}{% url "dashboard:product-class-delete" pk=product_class.pk %}{% endblock %}{% block title %}-{% blocktrans trimmed context "Modal delete product class text" %}-Delete product class {{ product_class }}+{% blocktrans trimmed context "Modal remove product class text" %}+Remove product class {{ product_class }}{% endblocktrans %}{% endblock title %}{% block content %}<p>- {% blocktrans trimmed context "Modal delete product class text" %}- Are you sure you want to delete product class <strong>{{ product_class }}</strong>?+ {% blocktrans trimmed context "Modal remove product class text" %}+ Are you sure you want to remove product class <strong>{{ product_class }}</strong>?{% endblocktrans %}</p><p>{% if products %}- {% blocktrans trimmed context "Modal delete product class text" with product_count=products.count %}+ {% blocktrans trimmed context "Modal remove product class text" with product_count=products.count %}There are {{ product_count }} products in product class.{% endblocktrans %}{% else %}- {% blocktrans trimmed context "Modal delete product class text" %}+ {% blocktrans trimmed context "Modal remove product class text" %}There are no products in this product class.{% endblocktrans %}{% endif %}diff --git a/templates/dashboard/product/product_image/list.html b/templates/dashboard/product/product_image/list.htmlindex 2bf15056c5..29dff0c950 100644--- a/templates/dashboard/product/product_image/list.html+++ b/templates/dashboard/product/product_image/list.html@@ -41,7 +41,7 @@{% csrf_token %}<div class="row"><ul class="product-gallery" id="product-gallery" data-post-url="{% url 'dashboard:product-images-reorder' product_pk=product.pk %}">- {% if images %}+ {% if images %}{% for image in images %}<li class="col s6 m3 product-gallery-item" data-id="{{ image.pk }}"><div class="row">@@ -69,7 +69,7 @@{% trans "Edit" context "Dashboard edit action" %}</a><a href="#base-modal" class="btn btn-flat modal-trigger-custom" data-href="{% url 'dashboard:product-image-delete' product_pk=product.pk img_pk=image.pk %}">- {% trans "Delete" context "Dashboard delete action" %}+ {% trans "Remove" context "Dashboard remove action" %}</a></div></div>@@ -115,7 +115,7 @@</a><a href="#base-modal" class="btn btn-flat card-action-delete modal-trigger-custom"data-href="{% url 'dashboard:product-image-delete' product_pk=product.pk img_pk=0 %}">- {% trans "Delete" context "Dashboard delete action" %}+ {% trans "Remove" context "Dashboard remove action" %}</a></div></div>diff --git a/templates/dashboard/product/product_image/modal/confirm_delete.html b/templates/dashboard/product/product_image/modal/confirm_delete.htmlindex 2231708740..b8661a765f 100644--- a/templates/dashboard/product/product_image/modal/confirm_delete.html+++ b/templates/dashboard/product/product_image/modal/confirm_delete.html@@ -8,12 +8,12 @@{% endblock %}{% block title %}-{% trans "Delete product image" context "Modal delete image text" %}+{% trans "Remove product image" context "Modal remove image text" %}{% endblock %}{% block content %}-<div class="center-align">+<div class="center-align"><img class="responsive-img" src="{{ image.image.crop.255x255 }}" srcset="{{ image.image.crop.255x255 }} 1x, {{ image.image.crop.510x510 }} 2x" alt=""></div>-<p>{% trans "Are you sure you want to delete product image?" context "Modal delete image text" %}</p>+<p>{% trans "Are you sure you want to remove product image?" context "Modal remove image text" %}</p>{% endblock content %}diff --git a/templates/dashboard/product/product_variant/detail.html b/templates/dashboard/product/product_variant/detail.htmlindex b249f41cd9..1b597f5ccd 100644--- a/templates/dashboard/product/product_variant/detail.html+++ b/templates/dashboard/product/product_variant/detail.html@@ -93,7 +93,7 @@{% trans "Edit variant" context "Dashboard action" %}</a><a href="#base-modal" class="btn btn-flat modal-trigger-custom" data-href="{% url 'dashboard:variant-delete' product_pk=product.pk variant_pk=variant.pk %}">- {% trans "Delete variant" context "Dashboard action" %}+ {% trans "Remove variant" context "Dashboard action" %}</a></div>{% endif %}diff --git a/templates/dashboard/product/product_variant/modal/confirm_delete.html b/templates/dashboard/product/product_variant/modal/confirm_delete.htmlindex 9a876f6973..1e468dde8b 100644--- a/templates/dashboard/product/product_variant/modal/confirm_delete.html+++ b/templates/dashboard/product/product_variant/modal/confirm_delete.html@@ -10,14 +10,14 @@{% block title %}{% blocktrans context "Dashboard confirmation modal" %}-Delete variant {{ variant }}+Remove variant {{ variant }}{% endblocktrans %}{% endblock %}{% block content %}<p>{% blocktrans context "Dashboard confirmation modal" %}-Are you sure you want to delete variant <strong>{{ variant }}</strong> of product {{ product }}?+Are you sure you want to remove variant <strong>{{ variant }}</strong> of product {{ product }}?{% endblocktrans %}</p>{% if is_only_variant %}diff --git a/templates/dashboard/product/stock/detail.html b/templates/dashboard/product/stock/detail.htmlindex 93ff5c5379..895a309bf1 100644--- a/templates/dashboard/product/stock/detail.html+++ b/templates/dashboard/product/stock/detail.html@@ -66,7 +66,7 @@{% trans "Edit stock" context "Dashboard action" %}</a><a href="#base-modal" class="btn btn-flat modal-trigger-custom" data-href="{% url 'dashboard:variant-stock-delete' product_pk=product.pk variant_pk=variant.pk stock_pk=stock.pk %}">- {% trans "Delete stock" context "Dashboard action" %}+ {% trans "Remove stock" context "Dashboard action" %}</a></div>{% endif %}diff --git a/templates/dashboard/product/stock/modal/confirm_delete.html b/templates/dashboard/product/stock/modal/confirm_delete.htmlindex a97fa799b1..6393272e6f 100644--- a/templates/dashboard/product/stock/modal/confirm_delete.html+++ b/templates/dashboard/product/stock/modal/confirm_delete.html@@ -9,12 +9,12 @@{% block title %}{% blocktrans context "Dashboard confirmation modal" %}-Delete stock {{ stock }}+Remove stock {{ stock }}{% endblocktrans %}{% endblock title %}{% block content %}{% blocktrans context "Dashboard confirmation modal" %}-Are you sure you want to delete stock <strong>{{ stock }}</strong>?+Are you sure you want to remove stock <strong>{{ stock }}</strong>?{% endblocktrans %}{% endblock content %}diff --git a/templates/dashboard/product/stock_location/modal/confirm_delete.html b/templates/dashboard/product/stock_location/modal/confirm_delete.htmlindex 0288e88964..64df338c06 100644--- a/templates/dashboard/product/stock_location/modal/confirm_delete.html+++ b/templates/dashboard/product/stock_location/modal/confirm_delete.html@@ -7,23 +7,23 @@{% endblock %}{% block title %}-{% blocktrans trimmed context "Modal delete stock location text" %}-Delete stock location {{ location }}+{% blocktrans trimmed context "Modal remove stock location text" %}+Remove stock location {{ location }}{% endblocktrans %}{% endblock title %}{% block content %}<p>-{% blocktrans trimmed context "Modal delete stock location text" %}- Are you sure you want to delete stock location <strong>{{ location }}</strong>?+{% blocktrans trimmed context "Modal remove stock location text" %}+ Are you sure you want to remove stock location <strong>{{ location }}</strong>?{% endblocktrans %}</p>{% if stock_count %}<p>-{% blocktrans trimmed count counter=stock_count context "Modal delete stock location text" %}- There is one stock associated with this stock location that will be deleted.+{% blocktrans trimmed count counter=stock_count context "Modal remove stock location text" %}+ There is one stock associated with this stock location that will be removed.{% plural %}- There are {{ counter }} stocks associated with this stock location that will be deleted.+ There are {{ counter }} stocks associated with this stock location that will be removed.{% endblocktrans %}</p>{% endif %}diff --git a/templates/dashboard/shipping/detail.html b/templates/dashboard/shipping/detail.htmlindex 7267e50e24..b4836a4337 100644--- a/templates/dashboard/shipping/detail.html+++ b/templates/dashboard/shipping/detail.html@@ -59,7 +59,7 @@{% trans "Edit shipping method" context "Shipping method action" %}</a><a class="btn btn-flat modal-trigger-custom" href="#base-modal" data-href="{% url "dashboard:shipping-method-delete" shipping_method.pk %}">- {% trans "Delete shipping method" context "Shipping method action" %}+ {% trans "Remove shipping method" context "Shipping method action" %}</a></div>{% endif %}diff --git a/templates/dashboard/shipping/form.html b/templates/dashboard/shipping/form.htmlindex b7da12241b..de3cbf3c15 100644--- a/templates/dashboard/shipping/form.html+++ b/templates/dashboard/shipping/form.html@@ -72,6 +72,46 @@{{ form|materializecss }}</div></div>+ <div class="formset-table-container">+ <table class="formset-table">+ <thead>+ <tr>+ <th>+ {% trans "Country" context "Shipping method country list" %}+ </th>+ <th>+ {% trans "Price" context "Shipping method country list" %}+ </th>+ <th>+ {% trans "Remove" context "Dashboard delete action" %}+ </th>+ </tr>+ </thead>+ <tbody>+ {% for form in price_per_country_formset %}+ <tr>+ <td>+ {% for hidden in form.hidden_fields %}+ {{ hidden }}+ {% endfor %}+ {{ form.country_code|materializecss:"input-field s12" }}+ {% if form.non_field_errors %}+ {% for error in form.non_field_errors %}+ <p class="help-block materialize-red-text">{{ error }}</p>+ {% endfor %}+ {% endif %}+ </td>+ <td>+ {{ form.price|materializecss }}+ </td>+ <td>+ {{ form.DELETE|materializecss }}+ </td>+ </tr>+ {% endfor %}+ </tbody>+ </table>+ </div><div class="card-action right-align">{% if shipping_method.pk %}<a href="{% url 'dashboard:shipping-method-detail' shipping_method.pk %}" class="btn btn-flat">diff --git a/templates/dashboard/shipping/modal/confirm_delete.html b/templates/dashboard/shipping/modal/confirm_delete.htmlindex c2c6d21223..c41ca2e683 100644--- a/templates/dashboard/shipping/modal/confirm_delete.html+++ b/templates/dashboard/shipping/modal/confirm_delete.html@@ -10,12 +10,12 @@{% block title %}{% blocktrans context "Dashboard confirmation modal" %}-Delete shipping method {{ shipping_method }}+Remove shipping method {{ shipping_method }}{% endblocktrans %}{% endblock %}{% block content %}{% blocktrans context "Dashboard confirmation modal" %}-Are you sure you want to delete shipping method <strong>{{ shipping_method}}</strong>?+Are you sure you want to remove shipping method <strong>{{ shipping_method}}</strong>?{% endblocktrans %}{% endblock %}diff --git a/templates/dashboard/staff/modal/confirm_delete.html b/templates/dashboard/staff/modal/confirm_delete.htmlindex be5bde9431..2e2de2e3a3 100644--- a/templates/dashboard/staff/modal/confirm_delete.html+++ b/templates/dashboard/staff/modal/confirm_delete.html@@ -5,14 +5,14 @@{% block action_url %}{% url 'dashboard:staff-delete' pk=staff.pk %}{% endblock %}{% block title %}-{% blocktrans trimmed context "Modal delete group text" %}- Delete staff member <strong>{{ staff }}</strong>?+{% blocktrans trimmed context "Modal remove group text" %}+ Remove staff member <strong>{{ staff }}</strong>?{% endblocktrans %}{% endblock %}{% block content %}-{% blocktrans trimmed context "Modal delete group text" %}-<p>Are you sure you want to delete staff member?</p>+{% blocktrans trimmed context "Modal remove group text" %}+<p>Are you sure you want to remove staff member?</p><p>Deleting staff member also removes him from customer list and removes all his related data (orders, payment etc.).</p><p>We strongly recommend not deleting user accounts that were used for purchases (for example customer which was promoted with staff member status).</p><p>{{ staff }} has <strong>{{ orders }}</strong> orders.</p>diff --git a/templates/dashboard/styleguide/index.html b/templates/dashboard/styleguide/index.htmlindex 4902d5fc25..05fd0c0d6f 100644--- a/templates/dashboard/styleguide/index.html+++ b/templates/dashboard/styleguide/index.html@@ -1124,7 +1124,7 @@Add</a><a href="" class="btn btn-data-table btn-show-when-checked btn-flat" style="display:none" hidden contenteditable="true">- Delete+ Remove</a></div><div class="data-table-container">diff --git a/templates/styleguide.html b/templates/styleguide.htmlindex 72275f7c09..a5bca3c14d 100644--- a/templates/styleguide.html+++ b/templates/styleguide.html@@ -758,7 +758,7 @@<div class="address-delete none"><form><button type="submit" class="btn danger narrow float-right" contenteditable="true">- Delete Address+ Remove Address</button><a class="btn btn-link cancel float-md-right" contenteditable="true">Canceldiff --git a/templates/userprofile/address-delete.html b/templates/userprofile/address-delete.htmlindex d065e2f10f..950c39a7c0 100644--- a/templates/userprofile/address-delete.html+++ b/templates/userprofile/address-delete.html@@ -3,10 +3,10 @@<form method="post" novalidate action="{% url 'profile:address-delete' pk=address.pk %}">{% csrf_token %}<button type="submit" class="btn danger narrow float-right">- {% trans "Delete Address" context "Delete address form action" %}+ {% trans "Remove Address" context "Remove address form action" %}</button><a class="btn btn-link cancel float-md-right">- {% trans "Cancel" context "Delete address form action" %}+ {% trans "Cancel" context "Remove address form action" %}</a></form></div>