Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix translation tags after PR #905. Fixes #906

Marco Badan0bbf0e3cbdf1
diff --git a/templates/dashboard/customer/list.html b/templates/dashboard/customer/list.html
index f06162a234..c0b6181a3f 100644
--- a/templates/dashboard/customer/list.html
+++ b/templates/dashboard/customer/list.html
@@ -24,7 +24,7 @@
<div class="col s5 m3 l3">
<button type="submit" class="btn btn--inline">
- {% trans "Filter" context="Customer list form primary action" %}</button>
+ {% trans "Filter" context "Customer list form primary action" %}</button>
{% if form.is_bound %}
<a class="btn btn--inline" href="{% url 'dashboard:customers' %}">
{% trans "Clear" context "Customer list form secondary action" %}</a>
diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.html
index 46b4bda92e..93058fe675 100644
--- a/templates/dashboard/order/detail.html
+++ b/templates/dashboard/order/detail.html
@@ -219,8 +219,8 @@
{% if group.shipping_price.gross or group.is_shipping_required %}
<tr>
<td colspan="4">
- {% blocktrans trimmed context "Shipment group table item column data" %}
- Shipping ({{ group.shipping_method_name }})
+ {% blocktrans trimmed with group_shipping_method_name=group.shipping_method_name context "Shipment group table item column data" %}
+ Shipping ({{ group_shipping_method_name }})
{% endblocktrans %}
</td>
<td class="right-align">
@@ -399,8 +399,8 @@
{% for payment in all_payments %}
<tr>
<td><a href="{% url "dashboard:payment-details" pk=payment.pk %}">
- {% blocktrans trimmed context "Payment item column data" %}
- #{{ payment.id }}
+ {% blocktrans trimmed with payment_id=payment.id context "Payment item column data" %}
+ #{{ payment_id }}
{% endblocktrans %}
</a></td>
<td>{{ payment.created }}</td>
diff --git a/templates/dashboard/payments/detail.html b/templates/dashboard/payments/detail.html
index 8fa03914ed..e75231ab9e 100644
--- a/templates/dashboard/payments/detail.html
+++ b/templates/dashboard/payments/detail.html
@@ -27,7 +27,7 @@
<li class="back-mobile"><a href="{% url "dashboard:payments" %}"><i class="material-icons">arrow_back</i></a></li>
<li><span>
{% blocktrans trimmed with payment_id=payment.id context "Payment detail breadcrumbs" %}
- #{{ payment.id }}
+ #{{ payment_id }}
{% endblocktrans %}
</span></li>
</ul>
diff --git a/templates/dashboard/product/stock_locations/modal_confirm_delete.html b/templates/dashboard/product/stock_locations/modal_confirm_delete.html
index 2098803ff7..59273bd788 100644
--- a/templates/dashboard/product/stock_locations/modal_confirm_delete.html
+++ b/templates/dashboard/product/stock_locations/modal_confirm_delete.html
@@ -17,7 +17,7 @@
{% 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.
{% plural %}
- There are {{ stock_count }} stocks associated with this stock location that will be deleted.
+ There are {{ counter }} stocks associated with this stock location that will be deleted.
{% endblocktrans %}
{% endif %}
</div>