Skip to content

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

Add contextual markers to search template

Marco Badan2167d33aa2ec
diff --git a/templates/search/results.html b/templates/search/results.html
index a4ddf70eab..02ac03de0b 100644
--- a/templates/search/results.html
+++ b/templates/search/results.html
@@ -4,7 +4,7 @@
{% load static from staticfiles %}
{% load bootstrap_pagination from bootstrap3 %}
-{% block title %}{% trans "Search results" %} {{ block.super }}{% endblock %}
+{% block title %}{% trans "Search results" context "Search page title" %} {{ block.super }}{% endblock %}
{% block breadcrumb %}
{{ block.super }}
@@ -32,8 +32,8 @@
<div class="col-12">
<h2>Search: <strong>{{ query }}</strong></h2>
<img src="{% static 'images/pirate.svg' %}" />
- <p>{% trans "Sorry, no matches found for your request." %}</p>
- <p>{% trans "Try again or shop new arrivals." %}</p>
+ <p>{% trans "Sorry, no matches found for your request." context "Search without results text" %}</p>
+ <p>{% trans "Try again or shop new arrivals." context "Search without results text" %}</p>
</div>
</div>
{% endif %}